【发布时间】:2014-04-22 22:25:15
【问题描述】:
所以我试图为鼠标离开事件添加延迟,这样如果一个鼠标悬停在元素的边缘,它就不会出现故障
$(window).load(function(){
$("#cp_widget_7c184d64-36ed-4bb9-b617-c9034c2824c6").mouseenter(function () {
$("#cp_widget_7c184d64-36ed-4bb9-b617-c9034c2824c6").animate({
bottom: 75
});
});
$("#cp_widget_7c184d64-36ed-4bb9-b617-c9034c2824c6").mouseleave(function () {
.delay(10)//Have a delay here
$("#cp_widget_7c184d64-36ed-4bb9-b617-c9034c2824c6").animate({
bottom: -75
});
});
});
有什么想法吗??
【问题讨论】:
标签: javascript jquery menu hover