jQuery html5支持手机触屏幻灯片图片轮播代码



204 815 272



特效描述:jQuery html5 支持手机触屏 幻灯片图片轮播,Query html5幻灯片图片轮播代码,手机触屏图片轮播

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/settings.css" media="screen" />
<link href='css/css.css' rel='stylesheet' type='text/css'>

2. 引入JS

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.cssAnimate.mini.js"></script>
<script type="text/javascript" src="js/jquery.waitforimages.js"></script>
<script type="text/javascript" src="js/jquery.touchwipe.min.js"></script>
<script type="text/javascript" src="js/jquery.themepunch.paradigm.js"></script>

3. HTML代码

<div id="banner-example-1" class="light" style="margin-top:190px;">
	<ul>
		<!-- THE 1. SLIDE -->
		<li data-transition="fade"><img src="images/slide1.jpg" data-thumb="images/thumb1.jpg" data-thumb_bw="images/thumb1_bw.jpg" alt="" />
			<div  class="creative_layer">
				<div class="caption_blue fadeup" style="top:170px;left:50px;">Welcome to PARADIGM</div>
				<div class="caption_black smallcap faderight" style="top:213px;left:90px">The highly customizable slider solution</div>
			</div>
		</li>
		<!-- THE 2. SLIDE -->
		<li data-transition="slide"><img src="images/vimeo.jpg" data-thumb="images/thumb_vimeo.jpg" data-thumb_bw="images/thumb_vimeo_bw.jpg" alt="" />
			<div class="video_pradigm">
				<div class="video_paradigm_wrap">
					<iframe class="video_clip" src="http://player.vimeo.com/video/24456787?title=0&amp;byline=0&amp;portrait=0" width="534" height="300" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe>
					<h2>Vimeo Video Support</h2>
					<p> Themepunch creates beautiful and elegant termplates, themes and components that suit your clients needs. </p>
					<p> <strong>Lorem ipsum</strong> dolor sit amet, consetetur sadipscing elitr, sed diam nonumy <strong>eirmod tempor</strong>. </p>
					<a class="buttonlight" href="#">Visit Website</a>
					<div id="close"></div>
				</div>
			</div>
			<div  class="creative_layer">
				<div class="caption_blue fadeleft" style="top:120px;left:590px;">Vimeo Video</div>
				<div class="caption_white faderight" style="top:120px;left:722px;">Support</div>
				<div class="caption_black smallcap fadeup" style="top:163px;left:590px;">Click the play button</div>
			</div>
		</li>
		<!-- THE 3. SLIDE -->
		<li data-transition="slide"><img src="images/slide2.jpg" data-thumb="images/thumb2.jpg" data-thumb_bw="images/thumb2_bw.jpg" alt="" />
			<div  class="creative_layer">
				<div class="caption_green fadedown" style="top:80px;left:550px;">Some of Paradigm's Options:</div>
				<div class="caption_black smallcap fadeleft" style="top:123px;left:550px">Image and thumbs fully resizable</div>
				<div class="caption_black smallcap fadeleft" style="top:157px;left:550px">Optional parallax effect</div>
				<div class="caption_black smallcap fadeleft" style="top:191px;left:550px">iPhone & Android touch enabled</div>
			</div>
		</li>
		<!-- THE 4. SLIDE -->
		<li data-transition="fade"><img src="images/slide3.jpg" data-thumb="images/thumb3.jpg" data-thumb_bw="images/thumb3_bw.jpg" alt="" />
			<div  class="creative_layer">
				<div class="caption_orange fadeup" style="top:210px;left:200px;">Captions can be positioned freely</div>
				<div class="caption_white fadedown" style="top:210px;left:513px;"><a href="#">Example URL-link</a></div>
			</div>
		</li>
		<!-- THE 5. SLIDE -->
		<li data-transition="fade"><img src="images/youtube.jpg" data-thumb="images/thumb_youtube.jpg" data-thumb_bw="images/thumb_youtube_bw.jpg" alt="" />
			<div class="video_pradigm">
				<div class="video_paradigm_wrap">
					<iframe class="video_clip" src="http://www.youtube.com/embed/kjX-8kQmakk?hd=1&amp;wmode=opaque&amp;autohide=1&amp;showinfo=0" height="300" width="534" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe>
					<h2>Youtube Video Support</h2>
					<p> Themepunch creates beautiful and elegant termplates, themes and components that suit your clients needs. </p>
					<p> <strong>Lorem ipsum</strong> dolor sit amet, consetetur sadipscing elitr, sed diam nonumy <strong>eirmod tempor</strong>. </p>
					<a class="buttonlight" href="#">More Info</a>
					<div id="close"></div>
				</div>
			</div>
			<div  class="creative_layer">
				<div class="caption_red fadeleft" style="top:120px;left:580px;"><a href="#">Youtube Video</a></div>
				<div class="caption_white faderight" style="top:120px;left:728px;">Support</div>
			</div>
		</li>
		<!-- THE 6. SLIDE -->
		<li data-transition="slide"><img src="images/slide4.jpg" data-thumb="images/thumb4.jpg" data-thumb_bw="images/thumb4_bw.jpg" alt="" />
			<div  class="creative_layer">
				<div class="caption_black nobg largecap fadeleft" style="top:60px;left:530px;">Text with no background</div>
			</div>
		</li>
		<!-- THE 7. SLIDE -->
		<li data-transition="fade"><img src="images/slide5.jpg" data-thumb="images/thumb5.jpg" data-thumb_bw="images/thumb5_bw.jpg" alt="" />
			<div  class="creative_layer">
				<div class="caption_blue fadeleft" style="top:220px;left:550px;">We hope you enjoy this slider</div>
			</div>
		</li>
		<!-- THE 8. SLIDE -->
		<li data-transition="slide"><img src="images/slide6.jpg" data-thumb="images/thumb6.jpg" data-thumb_bw="images/thumb6_bw.jpg" alt="" />
			<div  class="creative_layer">
				<div class="caption_green faderight" style="top:220px;left:550px;">Make sure to follow us on envato</div>
			</div>
		</li>
	</ul>
</div>
<!-- THE END OF THE BANNER EXMAPLE -->
<div style="height:240px"></div>
<!-- 
			###################################
				-	BANNER EXAMPLE 2 	-
			###################################
			-->
<div id="banner2-bg">
	<h1>Dark Style</h1>
	<p>+ no Parallax effect + no Slideshow Timer</p>
</div>
<div id="banner-example-2" class="dark">
	<ul>
		<!-- THE 1. SLIDE -->
		<li data-transition="slide"><img src="images/slide1_v2.jpg" data-thumb="images/thumb1_v2.jpg" data-thumb_bw="images/thumb1_v2_blur.jpg" alt="" />
			<div  class="creative_layer">
				<div class="caption_black largecap fadeleft" style="top:170px;left:70px">PARADIGM</div>
				<div class="caption_black smallcap faderight" style="top:220px;left:100px">by Themepunch</div>
			</div>
		</li>
		<!-- THE 2. SLIDE -->
		<li data-transition="fade"><img src="images/slide2_v2.jpg" data-thumb="images/thumb2_v2.jpg" data-thumb_bw="images/thumb2_v2_blur.jpg" alt="" />
			<div  class="creative_layer">
				<div class="caption_black smallcap nobg faderight" style="top:250px;left:400px">Example setups included in the download</div>
			</div>
		</li>
		<!-- THE 3. SLIDE -->
		<li data-transition="slide"><img src="images/slide3_v2.jpg" data-thumb="images/thumb3_v2.jpg" data-thumb_bw="images/thumb3_v2_blur.jpg" alt="" />
			<div  class="creative_layer">
				<div class="imagecap faderight" style="top:150px;left:50px"><img src="images/premiumbadge.png" width="170" height="126" alt=""/></div>
				<div class="caption_grey faderight" style="top:120px;left:30px">Caption image support</div>
			</div>
		</li>
		<!-- THE 4. SLIDE -->
		<li data-transition="slide"><img src="images/slide4_v2.jpg" data-thumb="images/thumb4_v2.jpg" data-thumb_bw="images/thumb4_v2_blur.jpg" alt="" />
			<div  class="creative_layer"> </div>
		</li>
		<!-- THE 5. SLIDE -->
		<li data-transition="slide"><img src="images/slide5_v2.jpg" data-thumb="images/thumb5_v2.jpg" data-thumb_bw="images/thumb5_v2_blur.jpg" alt="" />
			<div  class="creative_layer">
				<div class="caption_white fadeup" style="top:230px;left:250px;">Follow us on envato</div>
			</div>
		</li>
	</ul>
</div>
<!--
			##############################
			 - ACTIVATE THE BANNER HERE -
			##############################
			--> 
<script type="text/javascript">
$(function() {
	$.noConflict();					 									
	jQuery('#banner-example-1').paradigm(
		{										
			width:900,
			height:300,
			thumbWidth:90,
			thumbHeight:50,
			thumbAmount:6,							
			thumbSpaces:4,
			thumbPadding:4,
			thumbStyle:"thumb",
			thumbVideoIcon:"on",
			bulletXOffset:0,
			bulletYOffset:0,
			shadow:'true',
			parallaxX:500,
			parallaxY:10,
			captionParallaxX:-40,
			captionParallaxY:2,
			touchenabled:'on',
			timer:5						
		});
	jQuery('#banner-example-2').paradigm(
		{										
			width:700,
			height:300,
			thumbWidth:120,
			thumbHeight:80,
			thumbAmount:5,							
			thumbSpaces:0,
			thumbPadding:4,
			thumbStyle:"bullet",
			thumbVideoIcon:"on",
			bulletXOffset:0,
			bulletYOffset:0,
			shadow:'true',
			parallaxX:0,
			parallaxY:0,
			captionParallaxX:0,
			captionParallaxY:0,
			touchenabled:'on',
			timer:0						
		});
});
</script>



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


热门标签: 滑动导航菜单 导航切换 html5动画导航菜单 带标题的焦点图 滑动选项卡切换 html5图片动画 带缩略图的幻灯片 带简介的焦点图 图片滑动 图片切换 html5文字动画 图片轮播 文字滑动 文字切换 自动滚动图片轮播 html5表情动画 滑动手风琴 背景切换 马赛克幻灯片 html5线条动画 滑动星星打分 手风琴 全屏焦点图 选项卡自动切换 html5飘落动画 视频切换 html5光标动画 列表切换 渐隐切换 html5悬停动画 全屏切换 切换按钮 缩放切换 滑动滑过 滚动切换 滑动选项卡切换 加载动画 flash焦点图 选项卡切换 滑动手风琴 html5弹窗动画 html5动画h5动画 焦点图幻灯片 html5按钮动画

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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