index.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>jQuery多种百叶窗风格切换焦点图插件DEMO演示</title>
  6. <link rel="stylesheet" href="css/shutter.css">
  7. </head>
  8. <body>
  9. <div class="shutter">
  10. <div class="shutter-img">
  11. <a href="#" data-shutter-title="Iron Man"><img src="images/shutter_1.jpg" alt="#"></a>
  12. <a href="#" data-shutter-title="Super Man"><img src="images/shutter_2.jpg" alt="#"></a>
  13. <a href="#" data-shutter-title="The Hulk"><img src="images/shutter_3.jpg" alt="#"></a>
  14. <a href="#" data-shutter-title="The your"><img src="images/shutter_4.jpg" alt="#"></a>
  15. </div>
  16. <ul class="shutter-btn">
  17. <li class="prev"></li>
  18. <li class="next"></li>
  19. </ul>
  20. </div>
  21. <script src="js/jquery.min.js"></script>
  22. <script src="js/velocity.js"></script>
  23. <script src="js/shutter.js"></script>
  24. <script>
  25. $(function() {
  26. $('.shutter').shutter({
  27. shutterW: 1000, // 容器宽度
  28. shutterH: 358, // 容器高度
  29. isAutoPlay: true, // 是否自动播放
  30. playInterval: 3000, // 自动播放时间
  31. curDisplay: 3, // 当前显示页
  32. fullPage: false // 是否全屏展示
  33. });
  34. });
  35. </script>
  36. <div style="text-align:center;clear:both">
  37. </div>
  38. </body>
  39. </html>