$('.file a').live('mouseenter', function() {
$('#download').stop(true, true).fadeIn('fast');
}).live('mouseleave', function() {
$('#download').stop(true, true).fadeOut('fast');
});
我希望mouseenter
函数的stop()
和延迟1秒。 因此,如果我将鼠标悬停在#download
上,fadeIn
应该在1秒的延迟后开始。如果我同时将鼠标移出fadeIn
不应启动。找我?延迟()或用stop()超时?
我真的不知道该怎么做,有什么想法?
@ user239831 - 你对此有一个突出的问题吗? – 2010-11-12 13:03:26