基于jQuery实现通用幻灯片特效



14 55 19



特效描述:基于jQuery实现 通用幻灯片特效,基于jQuery实现通用幻灯片特效

代码结构

1. 引入CSS

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

2. 引入JS

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

3. HTML代码

<div id="wrapper">
	<div>
		<div class="sliderbutton"><img src="images/left.gif" width="32" height="38" alt="Previous" onClick="slideshow.move(-1)" /></div>
		<div id="slider">
			<ul>
				<li id="content">
					<h1>TinySlider - Simple JavaScript Slideshow</h1>
					<p>This super lightweight (1.5 KB) sliding JavaScript slideshow script can easily be customized to integrate with any website through CSS. You can add any content to it, not just images, and it gracefully degrades without JavaScript support. The script supports automatic rotation with the option to auto-resume, an active class on a navigation list if applicable, and a direction toggle (vertical or horizontal).</p>
					<p><em>For complete details visit <a href="http://51qianduan.com/">51qianduan.com</a>.</em></p>
				</li>
				<li><img src="photos/sea-turtle.jpg" width="500" height="300" alt="Sea turtle" /></li>
				<li><img src="photos/coral-reef.jpg" width="500" height="300" alt="Coral Reef" /></li>
				<li><img src="photos/blue-fish.jpg" width="500" height="300" alt="Blue Fish" /></li>
			</ul>
		</div>
		<div class="sliderbutton"><img src="images/right.gif" width="32" height="38" alt="Next" onClick="slideshow.move(1)" /></div>
	</div>
	<ul id="pagination" class="pagination">
		<li onClick="slideshow.pos(0)">1</li>
		<li onClick="slideshow.pos(1)">2</li>
		<li onClick="slideshow.pos(2)">3</li>
		<li onClick="slideshow.pos(3)">4</li>
	</ul>
</div>
<script type="text/javascript">
var slideshow=new TINY.slider.slide('slideshow',{
	id:'slider',
	auto:3,
	resume:true,
	vertical:false,
	navid:'pagination',
	activeclass:'current',
	position:0
});
</script>
<div style="text-align:center;clear:both"><br>
</div>



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


热门标签: 滑动 滑块 滑动门 触屏滑动 滑动插件 滑块插件 flash焦点图 flash幻灯片 flashbanner flash图片轮播 切换按钮 表单 表单美化 表单插件 表单美化插件 焦点图 幻灯片 轮播图 bar焦点图 图片滑动 图片滑块 纯图片轮播 图片轮播 按钮控制
×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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