<link rel="stylesheet" href="css/jquery.skippr.css"> <script src="js/jquery.min.js"></script> <script src="js/jquery.skippr.min.js"></script>2.HTML內容
<div id="container"> <div id="theTarget"> <div style="background-image: url(img/image1.jpg)"></div> <div style="background-image: url(img/image2.jpg)"></div> <div style="background-image: url(img/image3.jpg)"></div> <div style="background-image: url(img/image4.jpg)"></div> <div style="background-image: url(img/image5.jpg)"></div> </div> </div>3.函數調用
<script> $(document).ready(function(){ $("#theTarget").skippr({ transition: 'slide', speed: 1000, easing: 'easeOutQuart', navType: 'block', childrenElementType: 'div', arrows: true, autoPlay: false, autoPlayDuration: 5000, keyboardOnAlways: true, hidePrevious: false }); }); </script>參數配置解釋 transition :(fade/slide)切換方式 speed : 切換速度(毫秒) easing :切換效果(easeOutQuart) navType :下面導航類型(block/bubble) arrows :是否有箭頭(true/false) autoPlay :是否自動播放(true/false) autoPlayDuration : 自動播放間隔(毫秒) keyboardOnAlways :是否支持鍵盤切換(true/false) hidePrevious :是否隱藏第一張已經切換後的箭頭(true/false)
以上所述就是本文的全部內容了,希望大家能夠喜歡。
下載地址:http://pan.baidu.com/s/1gd8cjYF