jQuery实现内容滑动特效



24 95 32



特效描述:jQuery实现 内容滑动特效,jQuery实现内容滑动特效

代码结构

1. 引入CSS

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

2. 引入JS

<script type="text/javascript" src="js/jquery-1.4.min.js"></script>
<script type="text/javascript" src="js/jquery.scrollto.js"></script>
<script type="text/javascript" src="js/lanrenzhijia.js"></script>

3. HTML代码

	<div id="hero-slider">
		<ul>
			<li><a href="#" rel="#panel-1" class="active" id="01">Item 1</a></li>
			<li><a href="#" rel="#panel-2" id="02">Item 2</a></li>
			<li><a href="#" rel="#panel-3" id="03">Item 3</a></li>
		</ul>
		<div class="mask">
			<div class="slider-body">
				<div class="panel" id="panel-1">
					<h2>Lorem Ipsum Sit Dolor</h2>
					<p>Mauris vel neque sit amet nunc gravida congue sed sit amet purus. Quisque lacus quam, egestas ac tincidunt a, lacinia vel velit. Aenean facilisis nulla vitae urna tincidunt congue sed ut dui. Morbi malesuada nulla nec purus convallis consequat. In condimentum orci id nisl volutpat bibendum. </p>
				</div>
				<div class="panel" id="panel-2">
					<h2>Lorem Ipsum Sit Dolor</h2>
					<p>Maecenas quis tortor arcu. Vivamus rutrum nunc non neque consectetur quis placerat neque lobortis. Nam vestibulum, arcu sodales feugiat consectetur, nisl orci bibendum elit, eu euismod magna sapien ut nibh. Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. </p>
				</div>
				<div class="panel" id="panel-3">
					<h2>Lorem Ipsum Sit Dolor</h2>
					<p>Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus. Vivamus luctus urna sed urna ultricies ac tempor dui sagittis. In condimentum facilisis porta. Sed nec diam eu diam mattis viverra. Nulla fringilla, orci ac euismod semper, magna.</p>
				</div>
			</div>
		</div> <!-- .mask -->
		<div class="clear"></div>
	</div> <!-- #hero-slider -->
<div style="text-align:center;clear:both">
</div>



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


热门标签: 滑动 滑块 滑动门 触屏滑动 滑动插件 滑块插件 滚动切换 滚动条切换 滑动选项卡 滑动切换 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 滑动手风琴 导航切换 菜单切换 文字滑动 文字滑块 文字切换 文字选项卡

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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