可多次使用的jQuery tab选项卡插件

可多次使用的jQuery tab选项卡插件-精品资源网
可多次使用的jQuery tab选项卡插件
此内容为免费资源,请登录后查看
0
免费资源

可多次使用的jQuery tab选项卡插件

一款基于jQuery实现的选项卡特效,可在同一个网页页面多次使用的tab选项卡插件。

js代码

<script type=\"text/javascript\" src=\"js/jquery.min.js\"></script>
<script type=\"text/javascript\">
$(function(){
    function tabs(tabTit,on,tabCon){
        $(tabTit).children().hover(function(){
            $(this).addClass(on).siblings().removeClass(on);
            var index = $(tabTit).children().index(this);
           	$(tabCon).children().eq(index).show().siblings().hide();
    	});
	};
    tabs(\".tab-hd\",\"active\",\".tab-bd\");
});
</script>

© 版权声明
THE END
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容