利用jquery实现文字图片双滑动显示



如需定制开发(网站开发、二次开发)在线咨询,请点击>> QQ:753511799

153 610 204



特效描述:利用jquery实现 文字图片 双滑动显示。利用jquery实现文字图片双滑动显示

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" media="all" href="css/reset.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/clearfix.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/style.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/fonts.css"  />
<link rel="stylesheet" type="text/css" media="all" href="css/jquery.dualSlider.0.3.css" />

2. 引入JS

<script src="scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="scripts/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="scripts/jquery.timers-1.2.js" type="text/javascript"></script>
<script src="scripts/jquery.dualSlider.0.3.js" type="text/javascript"></script>

3. HTML代码

	<div class="wrapper clearfix">
		<h1 class="Lexia-Bold"></h1>
		<h2 class="Lexia-Regular"></h2>
		<p>As you can see pretty much any html can go in the panels from your CMS, you just need to format them with CSS</p>
		<div class="carousel clearfix">
			<div class="panel">
				<div class="details_wrapper">
					<div class="details">
						<div class="detail">
							<h2 class="Lexia-Bold"><a href="#">Dolor sit amet</a> Cum sociis natoque penatibus et magnis dis parturient montes</h2>
							<a href="#" title="Read more" class="more">Read more</a>
						</div><!-- /detail -->
						<div class="detail">
							<h2 class="Lexia-Bold"><a href="#">Lorem ipsum dolor</a> sit amet, consectetuer adipiscing elit. </h2>
							<a href="#" title="Read more" class="more">Read more</a>
						</div><!-- /detail -->
						<div class="detail">
							<h2 class="Lexia-Bold"><a href="#">Aenean massa</a>. Cum sociis natoque penatibus et magnis dis parturient montes</h2>
							<a href="#" title="Read more" class="more">Read more</a>
						</div><!-- /detail -->
					</div><!-- /details -->
				</div><!-- /details_wrapper -->
				<div class="paging">
					<div id="numbers"></div>
					<a href="javascript:void(0);" class="previous" title="Previous" >Previous</a>
					<a href="javascript:void(0);" class="next" title="Next">Next</a>
				</div><!-- /paging -->
				<a href="javascript:void(0);" class="play" title="Turn on autoplay">Play</a>
				<a href="javascript:void(0);" class="pause" title="Turn off autoplay">Pause</a>
			</div><!-- /panel -->
			<div class="backgrounds">
				<div class="item item_3">
				</div><!-- /item -->
				<div class="item item_1">
				</div><!-- /item -->
				<div class="item item_2">
				</div><!-- /item -->
			</div><!-- /backgrounds -->
		</div><!-- /carousel --> 
		<h3 class="Lexia-Regular">A little bit of documentation</h3>
		<p>
			It's fairly simple to get this going, just copy and paste markup from this file if need be.
		</p>
		<div class="documentation">
			<p class="alt clearfix">
				<strong class="Lexia-Regular">01.</strong>
				<span>The easiest thing you can do is download the quick start pack and modify as you wish :)</span>
			</p>
			<p class="clearfix">
				<strong class="Lexia-Regular">02.</strong>
				<span>If you don't want to do that then you can take the elements individually and build them into an existing site.  Start by getting all of the dependant files that are listed up top, including dualSlider.</span>
			</p>
			<p class="alt clearfix">
				<strong class="Lexia-Regular">03.</strong>
				<span>You will also need some CSS to get this going, or it won't work at all.  To get started just copy it from jquery.dualSlider.0.3.css.</span>
			</p>
			<p class="clearfix">
				<strong class="Lexia-Regular">04.</strong>
				<span>Now include all of these files in the &lt;head&gt; of your html document	.</span>
			</p>
			<p class="alt clearfix">
				<strong class="Lexia-Regular">05.</strong>
				<span>Once this is all done you need to get the markup onto the page, you can view the source of this document to get an idea of how that works, it can either be static or come out of a database, but thats up to you.  If it's out of a database no worries, the paging is built dynamically by the plugin.</span>
			</p>
			<p class="clearfix">
				<strong class="Lexia-Regular">06.</strong>
				<span>Initialise the plugin as per previously given, view source for an example.</span>
			</p>
			<p class="clearfix">
				<strong class="Lexia-Regular">07.</strong>
				<span>and relax...</span>
			</p>
<br /></div></div>



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



×
×
51前端

注册

×
绑定手机

请绑定手机号,在继续操作

×
单次下载支付

应付金额:279

支付完成后,回到下载页面,在进行下载

官方QQ群
意见反馈
qq群

扫描上面二维码加微信群

官方QQ群

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

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