如果用戶在課堂上移動鼠標兩秒(保持鼠標按鈕兩秒),我想要顯示他隱藏課程。怎麼樣? ()jquery在2秒後顯示延遲
如果您在類上移動鼠標串聯(多次),您將看到slideToggle完成爲自動化,我不想要這樣做。如何解決它?
DEMO:http://jsfiddle.net/tD8hc/
我試過:
$('.clientele-logoindex').live('mouseenter', function() {
setTimeout(function(){
$('.clientele_mess').slideToggle("slow");
}, 2000);
}).live('mouseleave', function() {
$('.clientele_mess').slideUp("slow");
})
在此處發佈您的答案,而不僅僅是在其他網站上。 – 2012-04-07 18:40:20
它會工作請嘗試此代碼 – Mahipal 2012-04-07 18:40:56
已添加代碼只在這裏 – Mahipal 2012-04-07 18:47:16