全屏banner 左右滚动图片
XML/HTML Code
- <div class="container">
- <div id="cbp-fwslider" class="cbp-fwslider">
- <ul>
- <li><a href="#"><img src="images/1.jpg" alt="img01"/></a></li>
- <li><a href="#"><img src="images/2.jpg" alt="img02"/></a></li>
- <li><a href="#"><img src="images/3.jpg" alt="img03"/></a></li>
- <li><a href="#"><img src="images/4.jpg" alt="img04"/></a></li>
- <li><a href="#"><img src="images/5.jpg" alt="img05"/></a></li>
- </ul>
- </div>
- </div>
JavaScript Code
- <script>
- $( function() {
- /*
- - how to call the plugin:
- $( selector ).cbpFWSlider( [options] );
- - options:
- {
- // default transition speed (ms)
- speed : 500,
- // default transition easing
- easing : 'ease'
- }
- - destroy:
- $( selector ).cbpFWSlider( 'destroy' );
- */
- $( '#cbp-fwslider' ).cbpFWSlider();
- } );
- </script>
原文地址:http://www.freejs.net/article_jiaodiantu_283.html