带圆点的图片切换,包括手动和自动切换,一次展示多个滚动,缩略图等
可以设置手动或者自动切换,有无显示缩略图,每次显示个数与滚动个数
XML/HTML Code
- <!-- BEGIN .wmuSlider -->
- <div class="wmuSlider example1">
- <div class="wmuSliderWrapper">
- <article> <img src="../dalian.jpg" /> </article>
- <article> <img src="../mohe.png" /> </article>
- <article> <img src="../sanya.jpg" /> </article>
- <article> <img src="../zhoushan.jpg" /> </article>
- <article> <img src="../xianggang.jpg" /> </article>
- <article> <img src="../zhoushan.jpg" /> </article>
- </div>
- <!-- END .wmuSlider -->
- </div>
- <!-- BEGIN .wmuSlider -->
- <div class="wmuSlider example2">
- <div class="wmuSliderWrapper">
- <article> <img src="../dalian.jpg" /> </article>
- <article> <img src="../mohe.png" /> </article>
- <article> <img src="../sanya.jpg" /> </article>
- <article> <img src="../zhoushan.jpg" /> </article>
- <article> <img src="../xianggang.jpg" /> </article>
- <article> <img src="../zhoushan.jpg" /> </article>
- </div>
- <!-- END .wmuSlider -->
- </div>
- <!-- BEGIN .wmuSlider -->
- <div class="wmuSlider example3">
- <div class="wmuSliderWrapper">
- <article> <img src="../dalian.jpg" /> </article>
- <article> <img src="../mohe.png" /> </article>
- <article> <img src="../sanya.jpg" /> </article>
- <article> <img src="../zhoushan.jpg" /> </article>
- <article> <img src="../xianggang.jpg" /> </article>
- <article> <img src="../zhoushan.jpg" /> </article>
- </div>
- <!-- END .wmuSlider -->
- </div>
- <!-- BEGIN .wmuGallery -->
- <div class="wmuGallery example4">
- <div class="wmuSlider">
- <div class="wmuSliderWrapper">
- <article> <img width="75" height="75" src="../dalian.jpg" data-src-full="../dalian.jpg" /> </article>
- <article> <img width="75" height="75" src="../mohe.png" data-src-full="../mohe.png" /> </article>
- <article> <img width="75" height="75" src="../sanya.jpg" data-src-full="../sanya.jpg" /> </article>
- <article> <img width="75" height="75" src="../zhoushan.jpg" data-src-full="../zhoushan.jpg" /> </article>
- <article> <img width="75" height="75" src="../xianggang.jpg" data-src-full="../xianggang.jpg" /> </article>
- <article> <img width="75" height="75" src="../zhoushan.jpg" data-src-full="../zhoushan.jpg" /> </article>
- </div>
- </div>
- <!-- END .wmuGallery -->
- </div>
- <!-- Scripts -->
- <script type="text/javascript" src="modernizr.custom.min.js"></script>
- <script type="text/javascript" src="../../js/jquery-1.9.1.min.js"></script><script src="jquery.wmuSlider.js"></script>
- <script src="jquery.wmuGallery.js"></script>
- <script>
- $('.example1').wmuSlider();
- $('.example2').wmuSlider({
- touch: true,
- animation: 'slide'
- });
- $('.example3').wmuSlider({
- touch: Modernizr.touch,
- animation: 'slide',
- items: 2
- });
- $('.example4').wmuGallery();
- </script>
- <!-- END body -->
原文地址:http://www.freejs.net/article_jquerytupiantexiao_210.html