使用 jQuery hover 通常會遇到延遲的問題,解決方式可以使用 hoverIntent 套件。
網址:http://cherne.net/brian/resources/jquery.hoverIntent.html
$("#subMenu li").hoverIntent(function(e) {
$(this).find("div").slideDown();
}, function(e){
$(this).find("div").hide();
});
沒有留言:
張貼留言