我要显示一个div,如果我一个元素的更多然后在5秒悬停,我已经试过张贴在计算器一些解决方案,但他们都不工作。jQuery的 - 如果悬停更多然后在5秒钟,然后显示DIV
这是没有时间我的悬停功能进行
$('div.avatar-with-data, .q-item-avatar').hover(function(){
$(this).find('div.user-data').fadeIn('fast');
},function(){
$(this).find('div.user-data').fadeOut('fast');
});
UPDATE
没有答案的工作,但如果我改变
$(this).find('div.user-data').fadeIn('fast');
到
alert('shown');
然后它(不明白为什么,试图改变淡入显示(),但仍然没有运气)。 但我上面的悬停功能没有超时工作。
他们为什么不工作?使用超时有什么问题? – Syjin 2013-02-12 13:48:00
悬停意图插件:http://cherne.net/brian/resources/jquery.hoverIntent.html – 2013-02-12 14:01:13
这正是hoverIntent所做的,幸运的是hoverIntent语法基本上就像悬停了 – kasdega 2013-02-12 14:40:09