特效介绍
jquery图片滑动轮播
jquery图片滑动轮播,图片和描述性文字以及产品依次有序的滑动。
使用方法
1、在head引入下面的代码:
<link rel="stylesheet" type="text/css" href="css/slide.css"/> <script src="http://www.5imoban.net/download/jquery/jquery-1.8.3.min.js"></script> <script type="text/javascript" src="js/slide.js"></script> <script type="text/javascript"> $(document).ready(function() { $(".slideInner").slide({ slideContainer: $('.slideInner a'), effect: 'easeOutCirc', autoRunTime: 5000, slideSpeed: 1000, nav: true, autoRun: true, prevBtn: $('a.prev'), nextBtn: $('a.next') }); }); </script>2、在body引入下面的代码:
<div class="slides"> <div class="slideInner"> <a href="#" style="background: url(img/slide1.jpg) no-repeat;"> <div class="moveElem img1" rel="0,easeInOutExpo"> <img src="img/slide1p1.png" /> </div> <div class="moveElem img2" rel="150,easeInOutExpo"> <img src="img/slide1p2.png" /> </div> </a> <a href="#" style="background: url(img/slide2.jpg) no-repeat"> <div class="moveElem img1" rel="0,easeInOutExpo"> <img src="img/slide2p1.png" /> </div> </a> <a href="#" class="slide3" style="background: url(img/slide3.jpg) no-repeat;"> <div class="moveElem img1" rel="0,easeInOutExpo"> <img src="img/slide3p1.png" /> </div> <div class="moveElem img2" rel="150,easeInOutExpo"> <img src="img/slide3p2.png" /> </div> <div class="moveElem img3" rel="300,easeInOutExpo"> <img src="img/slide3p3.png" /> </div> </a> <a href="#" style="background: rgb(113, 209, 231);"> <div class="moveElem img1" rel="0,easeInOutExpo"> <img src="img/slide1p1.png" /> </div> <div class="moveElem img2" rel="150,easeInOutExpo"> <img src="img/slide1p2.png" /> </div> </a> <a href="#" style="background: rgb(178, 44, 44);"> <div class="moveElem img1" rel="0,easeInOutExpo"> <img src="img/slide1p1.png" /> </div> <div class="moveElem img2" rel="150,easeInOutExpo"> <img src="img/slide1p2.png" /> </div> </a> </div> <div class="nav"> <a class="prev" href="javascript:;"></a> <a class="next" href="javascript:;"></a> </div> </div>
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!