jQuery實現內容滑動特效



39 152 51



特效描述: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

加群請備注:從官網了解到

湖北30选5开奖结果走势图表