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



66 261 88



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



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


热门标签: 文字叠加 图片拖动 图片放大镜 图片叠加 图片翻转旋转 图片延迟加载 图片淡出淡进 图片全屏 图片头像上传 二维码 滑动滑过 滚动切换 滑动选项卡切换 文字拖动 图片广告 文字提示框 文字收缩展开 文字放大缩小 图片放大缩小 文字翻转旋转 文字淡出淡进 文字全屏 html5图片动画 带缩略图的幻灯片 地图 文字延迟加载 图片滚动 图片滑动 图片切换 图片收缩展开 旋转木马 360全景 html5文字动画 图片轮播 文字滚动 文字滑动 文字切换 自动滚动图片轮播 图标导航菜单 选项卡切换 滑动手风琴 背景切换 手风琴 图片文字 文字导航菜单 图表 文字 图片 头像截图 图片滑动 图片切换 文字滑动 文字列表 选项卡自动切换 图片文字

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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