jQuery带标题的焦点图片横向滚动切换效果



151 601 201



特效描述:jQuery 带标题焦点图 横向滚动切换 切换特效,jQuery横向焦点图滚动效果,带标题文字的焦点图片切换代码。

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />

2. 引入JS

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>

3. HTML代码

<br />
<div id="slide-holder">
	<div id="slide-runner">
		<a href="http://www.dijiuzhanzhang.com/" target="_blank"><img id="slide-img-1" src="images/a1.jpg" class="slide" alt="" /></a>
		<a href="http://www.dijiuzhanzhang.com/" target="_blank"><img id="slide-img-2" src="images/a2.jpg" class="slide" alt="" /></a>
		<a href="http://www.dijiuzhanzhang.com/" target="_blank"><img id="slide-img-3" src="images/a3.jpg" class="slide" alt="" /></a>
		<a href="http://www.dijiuzhanzhang.com/" target="_blank"><img id="slide-img-4" src="images/a4.jpg" class="slide" alt="" /></a>
		<a href="http://www.dijiuzhanzhang.com/" target="_blank"><img id="slide-img-5" src="images/a5.jpg" class="slide" alt="" /></a>
		<a href="http://www.dijiuzhanzhang.com/" target="_blank"><img id="slide-img-6" src="images/a6.jpg" class="slide" alt="" /></a>
		<a href="http://www.dijiuzhanzhang.com/" target="_blank"><img id="slide-img-7" src="images/a4.jpg" class="slide" alt="" /></a> 
		<div id="slide-controls">
			<p id="slide-client" class="text"><strong></strong><span></span></p>
			<p id="slide-desc" class="text"></p>
			<p id="slide-nav"></p>
		</div>
	</div>
</div>
<script type="text/javascript">
if(!window.slider) {
	var slider={};
}
slider.data= [
{
	"id":"slide-img-1", // 与slide-runner中的img标签id对应
	"client":"标题1",
	"desc":"这里修改描述 这里修改描述 这里修改描述" //这里修改描述
},
{
	"id":"slide-img-2",
	"client":"标题2",
	"desc":"add your description here"
},
{
	"id":"slide-img-3",
	"client":"标题3",
	"desc":"add your description here"
},
{
	"id":"slide-img-4",
	"client":"标题4",
	"desc":"add your description here"
},
{
	"id":"slide-img-5",
	"client":"标题5",
	"desc":"add your description here"
},
{
	"id":"slide-img-6",
	"client":"标题6",
	"desc":"add your description here"
},
{
	"id":"slide-img-7",
	"client":"标题7",
	"desc":"add your description here"
}
];
</script>



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


热门标签: 滚动 滚动切换 滑动选项卡切换 flash焦点图 自动滚动图片轮播 选项卡切换 滑动手风琴 焦点图 幻灯片 图片轮播 带标题的焦点图 图片滚动 图片切换 自动滚动图片轮播 选项卡自动切换

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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