jQuery实现选项卡图片切换特效



63 248 83



特效描述:jQuery实现 选项卡 图片切换,利用jQuery实现选项卡图片切换特效

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/zzsc.css" />
<link rel="stylesheet" href="css/zzsc.css" />

2. 引入JS

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="js/zzsc.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="js/zzsc.js"></script>

3. HTML代码

<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="gb2312">
	<title></title>
</head>
<body class="home">
<br>
	<div id="allslider">
		<div class="elastic">
			<div id="slider">
				<div class="categories-slider" id="cat-1">
					<img src="images/slider/slider_7.jpg" class="inline-border active" width="960" height="535" title="This is all About!" alt="Live it always to the Limit." />
					<img src="images/slider/slider_3.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<img src="images/slider/slider_1.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<img src="images/slider/slider_6.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<div class="controls">
						<div class="inside-controls">
							<a class="circle-control" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
						</div>
					</div>
					<div class="slider-cat-description">
						<h2 class="slider-title"></h2>
						<p class="slider-text"></p>
					</div>
				</div>
				<div class="categories-slider" id="cat-2">
					<img src="images/slider/slider_3.jpg" class="inline-border active" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<img src="images/slider/slider_4.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<div class="controls">
						<div class="inside-controls">
							<a class="circle-control" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
						</div>
					</div>
					<div class="slider-cat-description">
						<h2 class="slider-title"></h2>
						<p class="slider-text"></p>
					</div>
				</div>
				<div class="categories-slider active" id="cat-3">
					<img src="images/slider/slider_1.jpg" class="inline-border active" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<img src="images/slider/slider_2.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<img src="images/slider/slider_3.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<img src="images/slider/slider_4.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<div class="controls">
						<div class="inside-controls active">
							<a class="circle-control active" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
						</div>
					</div>
					<div class="slider-cat-description">
						<h2 class="slider-title"></h2>
						<p class="slider-text"></p>
					</div>
				</div>
				<div class="categories-slider" id="cat-4">
					<img src="images/slider/slider_8.jpg" class="inline-border active" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<img src="images/slider/slider_6.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<img src="images/slider/slider_7.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<div class="controls">
						<div class="inside-controls">
							<a class="circle-control" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
						</div>
					</div>
					<div class="slider-cat-description">
						<h2 class="slider-title"></h2>
						<p class="slider-text"></p>
					</div>
				</div>
				<div class="categories-slider" id="cat-5">
					<img src="images/slider/slider_5.jpg" class="inline-border active" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<img src="images/slider/slider_3.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<div class="controls">
						<div class="inside-controls">
							<a class="circle-control" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
						</div>
					</div>
					<div class="slider-cat-description">
						<h2 class="slider-title"></h2>
						<p class="slider-text"></p>
					</div>
				</div>
				<div class="categories-slider" id="cat-6">
					<img src="images/slider/slider_2.jpg" class="inline-border active" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<img src="images/slider/slider_8.jpg" class="inline-border" width="960" height="535" title="How About Adding Some Cool Images!" alt="The colored box will be containing the images you want under each user definied category with icons." />
					<div class="controls">
						<div class="inside-controls">
							<a class="circle-control" href="#">&nbsp;</a>
							<a class="circle-control" href="#">&nbsp;</a>
						</div>
					</div>
					<div class="slider-cat-description">
						<h2 class="slider-title"></h2>
						<p class="slider-text"></p>
					</div>
				</div>
			</div>
		</div>
	</div>
<div style="text-align:center;clear:both">
</div>
</body>
</html>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 瀑布流 收藏 预览 自适应页面大小 响应式区块列表布局 摇摆 烟花 清单样式 照相机 注释 下划线 结构图 鼠标悬停 条形码 弹幕 画板 朋友圈样式 红包 css绘制样式 支付 图文布局 导航切换 图片淡出淡进 带标题的焦点图 二维码 文字淡出淡进 带缩略图的幻灯片 地图 带简介的焦点图 图片切换 图片轮播 计算器 文字切换 自动滚动图片轮播 计时器 背景切换 桌面 马赛克幻灯片 手风琴 跳转 全屏焦点图 选项卡自动切换 步骤 视频切换 键盘 列表切换 签到 分享 渐隐切换 点赞 投票 全屏切换 雪花 切换按钮 打印 缩放切换 答题 震动 图表 鼠标滑过 抽奖 表情 qq空间 头像截图 星星打分评分 编辑器 播放器 电子杂志 排行榜 分页翻页 排序 表格隔行变色 table表格 进度条 多功能 滚动切换 滑动选项卡切换 flash焦点图 选项卡切换 滑动手风琴 滑动星星打分 渐隐切换 淡出淡入淡进 焦点图幻灯片 其他更多

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到