jQuery tab标签列表js特效代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jQuery tab标签列表js特效代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

jQuery tab标签列表js特效代码

HTML代码(index.html):

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>jQuery tab标签列表</title>
	<link rel="stylesheet" href="css/style.css">
	<script src='js/jquery.min.js'></script>
	<script src="js/organictabs.jquery.js"></script>
	<script>
		$(function() {
		
			// Calling the plugin
			$("#example-one").organicTabs();
			$("#example-two").organicTabs({
				"speed": 100,
				"param": "tab"
			});
			
		});
	</script>
</head>
<body>
<div id="page-wrap">
	<h1>Organic Tabs</h1>
	<p>The purpose of this demo is to show a tabbed area where the content in 
	tabbed panels are of different heights. When we switch between tabs, the 
	content below is gently moved up or down to accomodate.</p>	
	<div id="example-one">
		<ul class="nav">
			<li class="nav-one"><a href="#featured" class="current">Featured</a></li>
			<li class="nav-two"><a href="#core">Core</a></li>
			<li class="nav-three"><a href="#jquerytuts">jQuery</a></li>
			<li class="nav-four last"><a href="#classics">Classics</a></li>
		</ul>
		<div class="list-wrap">
			<ul id="featured">
				<li><a href="#/?perfect-full-page-background-image/">
				Full Page Background Images</a></li>
				<li><a href="#/">
				Designing for WordPress</a></li>
				<li><a href="#/?build-your-own-social-home/">
				Build Your Own Social Home!</a></li>
				<li><a href="#/?absolute-positioning-inside-relative-positioning/">
				Absolute Positioning Inside Relative Positioning</a></li>
				<li><a href="#/?ie-css-bugs-thatll-get-you-every-time/">
				IE CSS Bugs That&#39;ll Get You Every Time</a></li>
				<li><a href="#/">404 Best 
				Practices</a></li>
				<li><a href="#/?date-display-with-sprites/">
				Date Display with Sprites</a></li>
			</ul>
			<ul id="core" class="hide">
				<li><a href="#/?video-screencasts/58-html-css-the-very-basics/">
				The VERY Basics of HTML &amp; CSS</a></li>
				<li><a href="#/?the-difference-between-id-and-class/">
				Classes and IDs</a></li>
				<li><a href="#/?the-css-box-model/">The CSS 
				Box Model</a></li>
				<li><a href="#/?all-about-floats/">All About 
				Floats</a></li>
				<li><a href="#/?the-css-overflow-property/">
				CSS Overflow Property</a></li>
				<li><a href="#/?css-font-size/">CSS Font Size 
				- (px - em - % - pt - keyword)</a></li>
				<li><a href="#/?css-transparency-settings-for-all-broswers/">
				CSS Transparency / Opacity</a></li>
				<li><a href="#/?css-sprites/">CSS Sprites</a></li>
				<li><a href="#/?nine-techniques-for-css-image-replacement/">
				CSS Image Replacement</a></li>
				<li><a href="#/?what-is-vertical-align/">CSS 
				Vertial Align</a></li>
				<li><a href="#/?the-css-overflow-property/">
				The CSS Overflow Property</a></li>
			</ul>
			<ul id="jquerytuts" class="hide">
				<li><a href="#/?anythingslider-jquery-plugin/">
				Anything Slider jQuery Plugin</a></li>
				<li><a href="#/?moving-boxes/">Moving Boxes</a></li>
				<li><a href="#/?simple-jquery-dropdowns/">
				Simple jQuery Dropdowns</a></li>
				<li><a href="#/?creating-a-slick-auto-playing-featured-content-slider/">
				Featured Content Slider</a></li>
				<li><a href="#/?startstop-slider/">Start/Stop 
				Slider</a></li>
				<li><a href="#/?banner-code-displayer-thing/">
				Banner Code Displayer Thing</a></li>
				<li><a href="#/?highlight-certain-number-of-characters/">
				Highlight Certain Number of Characters</a></li>
				<li><a href="#/?auto-moving-parallax-background/">
				Auto-Moving Parallax Background</a></li>
				</ul>
				<ul id="classics" class="hide">
				<li><a href="#/?css-wishlist/">Top Designers 
				CSS Wishlist</a></li>
				<li><a href="#/?what-beautiful-html-code-looks-like/">
				What Beautiful HTML Code Looks Like</a></li>
				<li><a href="#/?easily-password-protect-a-website-or-subdirectory/">
				Easily Password Protect a Website or Subdirectory</a></li>
				<li><a href="#/?how-to-create-an-ie-only-stylesheet/">
				IE-Only Stylesheets</a></li>
				<li><a href="#/?ecommerce-considerations/">
				eCommerce Considerations</a></li>
				<li><a href="#/?php-for-beginners-building-your-first-simple-cms/">
				PHP: Build Your First CMS</a></li>
			</ul>
		</div> <!-- END List Wrap -->
	</div> <!-- END Organic Tabs (Example One) -->
	<p>This is a plugin, so you can call it on multiple tabbed areas, which can 
	be styled totally differently</p>
	<div id="example-two">
		<ul class="nav">
			<li class="nav-one"><a href="#featured2" class="current">Featured</a></li>
			<li class="nav-two"><a href="#core2">Core</a></li>
			<li class="nav-three"><a href="#jquerytuts2">jQuery</a></li>
			<li class="nav-four last"><a href="#classics2">Classics</a></li>
		</ul>
		<div class="list-wrap">
		<ul id="featured2">
			<li><a href="#/?perfect-full-page-background-image/">
			Full Page Background Images</a></li>
			<li><a href="#/">
			Designing for WordPress</a></li>
			<li><a href="#/?build-your-own-social-home/">
			Build Your Own Social Home!</a></li>
			<li><a href="#/?absolute-positioning-inside-relative-positioning/">
			Absolute Positioning Inside Relative Positioning</a></li>
			<li><a href="#/?ie-css-bugs-thatll-get-you-every-time/">
			IE CSS Bugs That&#39;ll Get You Every Time</a></li>
			<li><a href="#/">404 Best 
			Practices</a></li>
			<li><a href="#/?date-display-with-sprites/">Date 
			Display with Sprites</a></li>
		</ul>
		
		<ul id="core2" class="hide">
			<li><a href="#/?video-screencasts/58-html-css-the-very-basics/">
			The VERY Basics of HTML &amp; CSS</a></li>
			<li><a href="#/?the-difference-between-id-and-class/">
			Classes and IDs</a></li>
			<li><a href="#/?the-css-box-model/">The CSS Box 
			Model</a></li>
			<li><a href="#/?all-about-floats/">All About 
			Floats</a></li>
			<li><a href="#/?the-css-overflow-property/">CSS 
			Overflow Property</a></li>
			<li><a href="#/?css-font-size/">CSS Font Size - 
			(px - em - % - pt - keyword)</a></li>
			<li><a href="#/?css-transparency-settings-for-all-broswers/">
			CSS Transparency / Opacity</a></li>
			<li><a href="#/?css-sprites/">CSS Sprites</a></li>
			<li><a href="#/?nine-techniques-for-css-image-replacement/">
			CSS Image Replacement</a></li>
			<li><a href="#/?what-is-vertical-align/">CSS 
			Vertial Align</a></li>
			<li><a href="#/?the-css-overflow-property/">The 
			CSS Overflow Property</a></li>
		</ul>
		
		<ul id="jquerytuts2" class="hide">
			<li><a href="#/?anythingslider-jquery-plugin/">
			Anything Slider jQuery Plugin</a></li>
			<li><a href="#/?moving-boxes/">Moving Boxes</a></li>
			<li><a href="#/?simple-jquery-dropdowns/">Simple 
			jQuery Dropdowns</a></li>
			<li><a href="#/?creating-a-slick-auto-playing-featured-content-slider/">
			Featured Content Slider</a></li>
			<li><a href="#/?startstop-slider/">Start/Stop 
			Slider</a></li>
			<li><a href="#/?banner-code-displayer-thing/">
			Banner Code Displayer Thing</a></li>
			<li><a href="#/?highlight-certain-number-of-characters/">
			Highlight Certain Number of Characters</a></li>
			<li><a href="#/?auto-moving-parallax-background/">
			Auto-Moving Parallax Background</a></li>
		</ul>
		
		<ul id="classics2" class="hide">
			<li><a href="#/?css-wishlist/">Top Designers CSS 
			Wishlist</a></li>
			<li><a href="#/?what-beautiful-html-code-looks-like/">
			What Beautiful HTML Code Looks Like</a></li>
			<li><a href="#/?easily-password-protect-a-website-or-subdirectory/">
			Easily Password Protect a Website or Subdirectory</a></li>
			<li><a href="#/?how-to-create-an-ie-only-stylesheet/">
			IE-Only Stylesheets</a></li>
			<li><a href="#/?ecommerce-considerations/">
			eCommerce Considerations</a></li>
			<li><a href="#/?php-for-beginners-building-your-first-simple-cms/">
			PHP: Build Your First CMS</a></li>
		</ul>
		
		</div> <!-- END List Wrap -->
	
	</div> <!-- END Organic Tabs (Example One) -->
	
	<p>This is some content below the tabs. I will be moved up or down to 
	accommodate the tabbed area above me.</p>
	
	</div>

 <style type="text/css" style="display: none !important;">
	* {
		margin: 0;
		padding: 0;
	}
	body {
		overflow-x: hidden;
	}
	.bsa_it_ad {
		padding: 8px 4px 8px 12px !important;
		position: relative;
		border: 0 !important;
		background: #D6D5D5 !important;
		border-top: 0 !important;
		box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
		font: 11px "Lucida Grande", Sans-Serif !important;
	}
	.bsa_it_ad:before, .bsa_it_ad:after {
		content: "";
		position: absolute;
		top: 0;
		left: 6px;
		width: 100%;
		height: 100%;
		background: #989898;
		border-bottom: 6px solid #989898;
		z-index: -1;
		box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
	}
	.bsa_it_ad:before {
		top: 0;
		left: 12px;
		z-index: -2;
		background: #6C6666;
		border-bottom: 12px solid #6C6666;
	}

	.bsa_it_ad a {
	  margin: 0 !important;
		padding: 0 !important;
	}
	.bsa_it_ad a img {
	  border: 0 !important;
		position: static !important;
	}
	.bsa_it_ad a:hover img {
		margin: 0 !important;
	}
	.bsa_it_ad a:hover {
	  background: none !important;
	}
	.bsa_it_i {
		margin: 0 15px 0 0 !important;
	}
	.bsa_it_t {
		font-size: 14px !important;
		margin: 12px 0 0 0 !important;
	}
	.bsa_it_d {
		padding-right: 10px;
	}
	.bsa_it_p{
		display: none !important;
	}
	#demo-bar-ad {
		width: 416px;
		position: absolute;
		right: 0;
		top: -20px;
		font: 11px "Lucida Grande", Sans-Serif !important;
	}
	#bsap_aplink {
		position: absolute;
		color: #999;
		text-decoration: none;
		bottom: 8px !important;
		right: 8px !important;
		padding: 0 !important;
	}
	.bsa_it_p a:hover {
		background:none !important;
	}
	#demo-top-bar {
		text-align: left;
		background: #e18728;
		position: relative;
		zoom: 1;
		width: 100% !important;
		z-index: 6000;
		box-shadow: 0 0 10px black;
		padding: 20px 0 15px;
	}
	#demo-bar-inside {
		width: 960px;
		margin: 0 auto;
		position: relative;
	}
	#demo-top-bar:before, #demo-top-bar:after {
		content: "";
		position: absolute;
		top: 0;
		left: 6px;
		width: 100%;
		height: 100%;
		background: #e18728;
		border-bottom: 6px solid #8F5314;
		z-index: -1;
		box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
	}
	#demo-top-bar:before {
		top: 0;
		left: 12px;
		background: #6C6666;
		border-bottom: 12px solid #62390E;
	}

	#demo-bar-buttons {
		display: inline-block;
		width: 236px;
		text-align: center;
		vertical-align: top;
		font-size: 0;
	}
	#demo-bar-buttons a {
		font-size: 12px;
		color: white;
		display: block;
		margin: 2px 0;
		text-decoration: none;
		font: 14px "Lucida Grande", Sans-Serif !important;
	}
	#demo-bar-buttons a:hover,
	#demo-bar-buttons a:focus {
		color: #333;
	}

	#demo-bar-badge {
		display: inline-block;
		width: 302px;
		padding: 0 !important;
		margin: 0 !important;
		background-color: transparent !important;
	}
	#demo-bar-badge a {
		display: block;
		width: 100%;
		height: 38px;
		border-radius: 0;
		bottom: auto;
		margin: 0;
		background: url(/images/examples-logo.png) no-repeat;
		background-size: 100%;
		overflow: hidden;
		text-indent: -9999px;
	}
	#demo-bar-badge:before, #demo-bar-badge:after {
		display: none !important;
	}
</style>
</body>
</html>









CSS代码(style.css):

/* Organic Tabs by Chris Coyier http://css-tricks.com*/
*{margin:0;padding:0;}
body{font:12px Georgia,serif;}
html{overflow-y:scroll;}
a{text-decoration:none;}
a:focus{outline:0;}
p{font-size:15px;margin:0 0 20px 0;}
#page-wrap{width:440px;margin:80px auto;}
h1{font:bold 40px Sans-Serif;margin:0 0 20px 0;}
/* Generic Utility */
.hide{position:absolute;top:-9999px;left:-9999px;}
/* Specific to example one */
#example-one{background:#eee;padding:10px;margin:0 0 20px 0;-moz-box-shadow:0 0 5px #666;-webkit-box-shadow:0 0 5px #666;}
#example-one .nav{overflow:hidden;margin:0 0 10px 0;}
#example-one .nav li{width:97px;float:left;margin:0 10px 0 0;}
#example-one .nav li.last{margin-right:0;}
#example-one .nav li a{display:block;padding:5px;background:#959290;color:white;font-size:10px;text-align:center;border:0;}
#example-one .nav li a:hover{background-color:#111;}
#example-one ul{list-style:none;}
#example-one ul li a{display:block;border-bottom:1px solid #666;padding:4px;color:#666;}
#example-one ul li a:hover{background:#fe4902;color:white;}
#example-one ul li:last-child a{border:none;}
#example-one ul li.nav-one a.current,#example-one ul#featured li a:hover{background-color:#0575f4;color:white;}
#example-one ul li.nav-two a.current,#example-one ul#core li a:hover{background-color:#d30000;color:white;}
#example-one ul li.nav-three a.current,#example-one ul#jquerytuts li a:hover{background-color:#8d01b0;color:white;}
#example-one ul li.nav-four a.current,#example-one ul#classics li a:hover{background-color:#FE4902;color:white;}
/* Specific to example two */
#example-two .list-wrap{background:#eee;padding:10px;margin:0 0 15px 0;}
#example-two ul{list-style:none;}
#example-two ul li a{display:block;border-bottom:1px solid #666;padding:4px;color:#666;}
#example-two ul li a:hover{background:#333;color:white;}
#example-two ul li:last-child a{border:none;}
#example-two .nav{overflow:hidden;}
#example-two .nav li{width:97px;float:left;margin:0 10px 0 0;}
#example-two .nav li.last{margin-right:0;}
#example-two .nav li a{display:block;padding:5px;background:#666;color:white;font-size:10px;text-align:center;border:0;}
#example-two li a.current,#example-two li a.current:hover{background-color:#eee !important;color:black;}
#example-two .nav li a:hover,#example-two .nav li a:focus{background:#999;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
35.62 KB
jquery特效7
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章