$(function(){ var tabNum=$(".important").find("li"); var contentNum=$(".contents").children(); var timer; $(tabNum).each(function(index){ $(this).hover(function(){ var that=$(this) timer=window.setTimeout(function(){ $(contentNum).eq(index).css({"display":"block"}); $(contentNum).eq(index).siblings().css({"display":"none"}); that.find("a").css({"background":"#FFF","color":"#fff"}); that.find("strong").show(); that.siblings().find("strong").hide(); that.siblings().find("a").css({"background":"#fff","color":"black"}); },100) },function(){ window.clearTimeout(timer); }) }) }) "/>

jQuery大气图标选项卡切换特效插件

211
0
jQuery选项卡选项卡特效选项卡插件图标选项卡
jQuery大气图标选项卡切换特效插件是一款jQuery Tab选项卡代码。
<script type="text/javascript">
$(function(){
    var tabNum=$(".important").find("li");
    var contentNum=$(".contents").children();
    var timer;
    $(tabNum).each(function(index){
        $(this).hover(function(){
            var that=$(this)
             timer=window.setTimeout(function(){
                $(contentNum).eq(index).css({"display":"block"});
                $(contentNum).eq(index).siblings().css({"display":"none"});
                 that.find("a").css({"background":"#FFF","color":"#fff"});
                 that.find("strong").show();
                 that.siblings().find("strong").hide();
                 that.siblings().find("a").css({"background":"#fff","color":"black"});
            },100)
        },function(){
            window.clearTimeout(timer);
        })
    })
})
</script>