我有一个简单的悬停fadeIn和fadeOut,你会在我的代码中看到。问题是,为了防止fadeIn/Out发生100次,我必须在调用fadeIn/Out之前使用.stop(),但停止似乎冻结了元素淡入淡出,然后当您将鼠标悬停时,它只会消失在尽量让你这样,你可以在这里看到一个例子:http://ena.vu/jhover/jhover.htmljQuery淡入淡出使用.stop()后悬停冻结()
和JQ代码:
obj.children().hover(function(e){
$(this).find("."+options.title_class).stop().fadeIn(options.title_speed);
},function(){
$(this).find("."+options.title_class).stop().fadeOut(options.title_speed);
});
而不是提供代码,请您描述一下您想要完成的任务吗? – Matrym 2010-12-08 05:03:52