jquery相册图片滑动切换点击弹出大图片切换预览效果代码



126 503 168



特效描述:jquery 相册图片 滑动切换 点击弹出大图片 切换预览效果,小图相册切换加弹出相册切换

代码结构

1. 引入CSS

<link href="css/base.css" rel="stylesheet" type="text/css" />

2. 引入JS

<script type="text/javascript" src="js/jquery-1.7.2.min.js" ></script>
<script src="js/iepng.js" type="text/javascript"></script>
<script type="text/javascript" src="js/pic_tab.js"></script>

3. HTML代码

<div class="ban" id="demo1">
	<div class="ban2" id="ban_pic1">
		<div class="prev1" id="prev1"><img src="images/index_tab_l.png" width="28" height="51"  alt=""/></div>
		<div class="next1" id="next1"><img src="images/index_tab_r.png" width="28" height="51"  alt=""/></div>
		<ul>
			<li><a href="javascript:;"><img src="images/b1.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b2.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b3.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b4.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b5.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b1.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b2.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b3.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b4.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b5.jpg" width="500" height="500" alt=""/></a></li>
		</ul>
	</div>
	<div class="min_pic">
		<div class="prev_btn1" id="prev_btn1"><img src="images/feel3.png" width="9" height="18"  alt=""/></div>
		<div class="num clearfix" id="ban_num1">
			<ul>
				<li><a href="javascript:;"><img src="images/s1.jpg" width="80" height="80" alt=""/></a></li>
				<li><a href="javascript:;"><img src="images/s2.jpg" width="80" height="80" alt=""/></a></li>
				<li><a href="javascript:;"><img src="images/s3.jpg" width="80" height="80" alt=""/></a></li>
				<li><a href="javascript:;"><img src="images/s4.jpg" width="80" height="80" alt=""/></a></li>
				<li><a href="javascript:;"><img src="images/s5.jpg" width="80" height="80" alt=""/></a></li>
				<li><a href="javascript:;"><img src="images/s1.jpg" width="80" height="80" alt=""/></a></li>
				<li><a href="javascript:;"><img src="images/s2.jpg" width="80" height="80" alt=""/></a></li>
				<li><a href="javascript:;"><img src="images/s3.jpg" width="80" height="80" alt=""/></a></li>
				<li><a href="javascript:;"><img src="images/s4.jpg" width="80" height="80" alt=""/></a></li>
				<li><a href="javascript:;"><img src="images/s5.jpg" width="80" height="80" alt=""/></a></li>
			</ul>
		</div>
		<div class="next_btn1" id="next_btn1"><img src="images/feel4.png" width="9" height="18"  alt=""/></div>
	</div>
</div>
<div class="mhc"></div>
<div class="pop_up" id="demo2">
	<div class="pop_up_xx"><img src="images/chacha3.png" width="40" height="40"  alt=""/></div>
	<div class="pop_up2" id="ban_pic2">
		<div class="prev1" id="prev2"><img src="images/index_tab_l.png" width="28" height="51"  alt=""/></div>
		<div class="next1" id="next2"><img src="images/index_tab_r.png" width="28" height="51"  alt=""/></div>
		<ul>
			<li><a href="javascript:;"><img src="images/b1.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b2.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b3.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b4.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b5.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b1.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b2.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b3.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b4.jpg" width="500" height="500" alt=""/></a></li>
			<li><a href="javascript:;"><img src="images/b5.jpg" width="500" height="500" alt=""/></a></li>
		</ul>
	</div>
</div>
<script type="text/javascript">
jq('#demo1').banqh({
	box:"#demo1",//总框架
	pic:"#ban_pic1",//大图框架
	pnum:"#ban_num1",//小图框架
	prev_btn:"#prev_btn1",//小图左箭头
	next_btn:"#next_btn1",//小图右箭头
	pop_prev:"#prev2",//弹出框左箭头
	pop_next:"#next2",//弹出框右箭头
	prev:"#prev1",//大图左箭头
	next:"#next1",//大图右箭头
	pop_div:"#demo2",//弹出框框架
	pop_pic:"#ban_pic2",//弹出框图片框架
	pop_xx:".pop_up_xx",//关闭弹出框按钮
	mhc:".mhc",//朦灰层
	autoplay:true,//是否自动播放
	interTime:5000,//图片自动切换间隔
	delayTime:400,//切换一张图片时间
	pop_delayTime:400,//弹出框切换一张图片时间
	order:0,//当前显示的图片(从0开始)
	picdire:true,//大图滚动方向(true为水平方向滚动)
	mindire:true,//小图滚动方向(true为水平方向滚动)
	min_picnum:5,//小图显示数量
	pop_up:true//大图是否有弹出框
})
</script>



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


热门标签: 滑动 滑块 滑动门 触屏滑动 滑动插件 滑块插件 滑动选项卡 滑动切换 滚动切换 滚动条切换 flash焦点图 flash幻灯片 flashbanner flash图片轮播 弹出层拖动 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 滑动手风琴 窗口 弹出 弹窗 弹出层 提示框 对话框 遮罩 遮罩层 弹窗插件 切换按钮 表单 表单美化 表单插件 表单美化插件 焦点图 幻灯片 轮播图 bar焦点图 带缩略图的幻灯片 图片滑动 图片滑块 图片切换 图片选项卡 图标选项卡 纯图片轮播 图片轮播 layer 按钮控制

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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