限时优惠活动
亲爱的苦力吧用户,我们为了回馈新老用户一直以来的鼎力支持,即日起(2025-02-06至2025-03-06)凡是购买苦力吧VIP/充值K币的新老用户,都直接可获得买一送一的优惠馈赠。例如:购买一个月的VIP会员可直接获得两个月的VIP会员;充值100K币可直接获得200K币,以此类推!有任何疑问可联系在线客服,感谢各位用户对苦力吧素材的信任与厚爱,我们将一如既往的给大家上新更多优质的素材源码,祝大家开工大吉、工作顺利、心想事成。

jquery轻量级TAB选项卡切换图文内容特效代码

所属分类: 网页特效-Tab选项卡    2023-11-08 12:14:27

jquery轻量级TAB选项卡切换图文内容特效代码 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

jquery轻量级TAB选项卡切换图文内容特效代码(共7个文件)

    • index.html

使用方法

/**
 * jQuery plugin for tabs
 */
/* define $ as jQuery just in case */
(function ($) {
	/* tabs - my custom plugin */
	$.fn.tabs = function () {
		/* set vars */
		var tab_group = this;
		var tab_controls = tab_group.find('.control');
		var active_tabs = tab_group.find('.control.active');
		var tab_targets = tab_group.find('.target');
		var active_tab = active_tabs.first().length > 0 ? active_tabs.first() : tab_group.find('.tab_control:eq(0)');
		var target_index = active_tab.index();
		var target_el = tab_group.find('.target:eq(' + target_index + ')');

		/* set the css */
		tab_group.hide();
		$(window).load(function () {
			/* grab the active tab and hide all other tabs */
			tab_controls.removeClass('active');
			active_tab.addClass('active');
			tab_targets.hide();
			target_el.show();

			/* show the tabs when everything is loaded */
			tab_group.show();
		});

		/* tab click */
		tab_group.on('click', '.control', function (e) {
			/* set active class on the clicked tab */
			tab_controls.removeClass('active');
			$(this).addClass('active');

			/* grab the target tab and show it */
			var target_index = $(this).index();
			console.log(target_index);
			var target_el = tab_group.find('.target:eq(' + target_index + ')');
			tab_targets.hide();
			target_el.show();
			e.preventDefault();
		});
	}
})(jQuery);

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / Tab选项卡

jquery响应式多边形创意tab选项卡插件

一款多边形几何图形tab选项卡菜单特效,兼容主流浏览器,响应式布局设计。
  Tab选项卡
 9315  0

触屏滑动swiper选项卡tab标签切换效果

一款蓝色风格手机端tab选项卡特效,采用了swiper插件设计。
  Tab选项卡
 9316  0

jquery带左右箭头的TAB选项卡切换插件

一款蓝色风格TAB选项卡切换插件,左右按钮可点击切换到下一个选项卡菜单进行显示。
  Tab选项卡
 1325  0

jquery支持左右按钮切换的Tab选项卡插件

一款响应式tab选项卡切换特效,可鼠标点击左右箭头按钮切换菜单。
  Tab选项卡
 932  0

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论