jQuery html5支持手機觸屏幻燈片圖片輪播代碼



172 685 229



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



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 滑動 滑塊 滑動門 觸屏滑動 滑動插件 滑塊插件 加載動畫 滑動選項卡 滑動切換 滾動切換 滾動條切換 flash焦點圖 flash幻燈片 flashbanner flash圖片輪播 滑動手風琴 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 h5彈窗動畫 html5彈窗動畫 h5動畫 h5背景動畫 h5場景動畫 h53D動畫 h5界面動畫 html5動畫 焦點圖 幻燈片 輪播圖 bar焦點圖 h5按鈕動畫 html5按鈕動畫 帶標題的焦點圖 h5圖片動畫 h5圖標動畫 html5圖片動畫 html5圖標動畫 圖片滑動 圖片滑塊 圖片切換 圖片選項卡 圖標選項卡 純圖片輪播 圖片輪播 選項卡自動切換
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

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

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