wan-carousel slide演示
XML/HTML Code
- <div class="wan-carousel wan-carousel-1" style="width: 50%; float:left;">
- <div class="carousel-list">
- <img src="../demo1.jpg" alt="img">
- <img src="../demo2.jpg" alt="img">
- <img src="../demo3.jpg" alt="img">
- <img src="../demo4.jpg" alt="img">
- </div>
- </div>
- <div class="wan-carousel wan-carousel-2" style="width: 50%; float:left;">
- <div class="carousel-list">
- <a href="#">
- <img src="../demo1.jpg" alt="img">
- </a>
- <img src="../demo2.jpg" alt="img">
- </div>
- </div>
- <div class="wan-carousel wan-carousel-3" style="width: 50%; float:left;">
- <div class="carousel-list">
- <img src="../demo2.jpg" alt="img">
- <img src="../demo3.jpg" alt="img">
- <img src="../demo4.jpg" alt="img">
- </div>
- </div>
- <div class="wan-carousel wan-carousel-4" style="width: 50%; float:left;">
- <div class="carousel-list">
- <a href="#">
- <img src="../demo1.jpg" alt="img">
- </a>
- <img src="../demo2.jpg" alt="img">
- </div>
- </div>
- <script type="text/javascript" src="js/jquery-1.11.3.js"></script>
- <script type="text/javascript" src="build/wan-carousel.js"></script>
- <script>
- $(".wan-carousel-1, .wan-carousel-2").WanCarousel();
- $(".wan-carousel-3").WanCarousel({
- interval: 8000,
- speed: 400,
- });
- $(".wan-carousel-4").WanCarousel({
- interval: 2000,
- speed: 800,
- });
- </script>
原文地址:http://www.freejs.net/article_jiaodiantu_517.html