Home JS special effects Other special effects Bootstrap multifunctional custom tab plugin

Bootstrap multifunctional custom tab plugin

Bootstrap multifunctional custom tab plugin

A powerful jQuery tab code, Bootstrap custom tab plug-in supports closing, adding, switching to positioning, positioning to current, closing other, closing all, sliding left, sliding right, getting the left and right sliding step value, and getting the current option Card ID, get all tab widths, get all tab function codes, etc.

js code

<script type="text/javascript" src="js/nth.tabs.min.js"></script>
<script>
	var nthTabs;
	$(function () {
		//一个低门槛的演示,更多需求看源码
		//基于bootstrap tab的自定义多标签的jquery实用插件,滚动条依赖jquery.scrollbar,图标依赖font-awesome
		nthTabs = $("#editor-tabs").nthTabs();
		nthTabs.addTab({
			id:'a',
			title:'孙悟空',
			content:'看我七十二变',
		}).addTab({
			/*换个姿势*/
			id:'b',
			title:'猪八戒-关不掉',
			content:'高老庄娶媳妇',
			active:true,
			allowClose:false,
		}).addTab({
			id:'c',
			title:'沙和尚',
			content:'请叫我大叔',
		}).addTab({
			id:'d',
			title:'唐僧',
			content:'光头一个',
		}).addTab({
			id:'e',
			title:'武松',
			content:'打虎猛汉',
		}).addTab({
			id:'f',
			title:'潘金莲',
			content:'大美女',
		}).addTab({
			id:'g',
			title:'来个标题长一点的的的来个标题长一点的的的',
			content:'你赢了',
		}).addTab({
			id:'h',
			title:'支持连贯操作',
			content:'没错就是这么爽',
		}).addTab({
			id:'i',
			title:'欢迎提意见',
			content:'一定一定',
		}).addTab({
			id:'j',
			title:'熬夜写的啊',
			content:'码农苦逼~',
		}).setActTab("#c");
	});
</script>
Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

css special effects_html/css_WEB-ITnose css special effects_html/css_WEB-ITnose

24 Jun 2016

css special effects

HTML&css&j special effects_html/css_WEB-ITnose HTML&css&j special effects_html/css_WEB-ITnose

24 Jun 2016

HTML&css&j special effects

61 web page special effects, very fashionable and with good visual effects_html/css_WEB-ITnose 61 web page special effects, very fashionable and with good visual effects_html/css_WEB-ITnose

24 Jun 2016

61 web page special effects that are very fashionable and have great visual effects

Animated loading effects implemented in pure css3_html/css_WEB-ITnose Animated loading effects implemented in pure css3_html/css_WEB-ITnose

24 Jun 2016

Animation loading special effects implemented in pure css3

jquery waterfall flow LightBox picture box special effects jquery waterfall flow LightBox picture box special effects

06 Jul 2016

jquery waterfall flow LightBox picture box special effects

A batch of hover effects implemented by CSS3_html/css_WEB-ITnose A batch of hover effects implemented by CSS3_html/css_WEB-ITnose

24 Jun 2016

A batch of hover special effects implemented by CSS3

Revealing the special effects in Tencent's burberry event page_html/css_WEB-ITnose Revealing the special effects in Tencent's burberry event page_html/css_WEB-ITnose

24 Jun 2016

Revealing the special effects in Tencent’s Burberry event page

CSS3 mouse slides over animated line border special effects CSS3 mouse slides over animated line border special effects

06 Jul 2016

CSS3 mouse slides over animated line border special effects

CSS3 input box shadow effect and other shadow effects_html/css_WEB-ITnose CSS3 input box shadow effect and other shadow effects_html/css_WEB-ITnose

24 Jun 2016

CSS3 input box shadow effects and other shadow effects

See all articles See all articles

Hot Tools

jQuery+Html5 realizes beautiful confession animation code

jQuery+Html5 realizes beautiful confession animation code

jQuery+Html5 implements beautiful confession animation code, the animation effect is great, a must-have for programmers to confess!

Couple's romantic confession js special effects code

Couple's romantic confession js special effects code

JS special effects code for couples' romantic confession. Such special effects can be used on wedding photography websites or placed on personal websites. It is also a good special effect. PHP Chinese website recommends downloading!

Simple js love confession artifact

Simple js love confession artifact

Simple native js love confession artifact

Bunker's html5 particle animation expressive effects

Bunker's html5 particle animation expressive effects

Bunker's html5 particle animation expression special effects code, the animated special effects text can be changed in the code, you can make a page where you can customize text input, it should be very popular, this HTML5 special effect is very beautiful.

jQuery responsive background login interface template

jQuery responsive background login interface template

jQuery responsive backend login interface template html source code. The login page uses jquery to verify the form and determine whether the username and password meet the requirements. Usually the login page is a page that must be used on corporate websites or mall websites. Responsive backend pages, When the browser zooms in or out, the background will resize the image according to the browser! PHP Chinese website recommends downloading!