$(function(){ var hoverTimer, outTimer; $(".nav li").hover(function () { var _this = $(this); clearTimeout(outTimer); hoverTimer = window.setTimeout(function () { _this.find('a').addClass("active"); _this.find(".addnavul").stop(true, true).slideDown(500); },0); }, function () { clearTimeout(hoverTimer); $(this).find('a').removeClass("active"); $(this).find(".addnavul").stop(true, true).slideUp(500); }); })
导航hover延迟
猜你喜欢
转载自www.cnblogs.com/sdsd123/p/11605840.html
今日推荐
周排行