2013-09-30

javascript:パノラマ写真を自動スクロール(simplyScroll)

サンプル

◆html

  1. <!DOCTYPE html>
  2. <html lang="ja">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>PanoramaScroll</title>
  6. <link rel="stylesheet" href="css/jquery.simplyscroll.css">
  7. <script src="js/jquery.js"></script>
  8. <script src="js/jquery.simplyscroll.js"></script>
  9.  
  10. <script>
  11.  
  12. (function($) {
  13. $(function() {
  14. $("#scroller").simplyScroll({
  15. speed: 3, autoMode: 'loop'
  16. });
  17. });
  18. })(jQuery);
  19.  
  20. </script>
  21.  
  22. </head>
  23.  
  24. <body>
  25.  
  26. <h3>伊予ヶ岳頂上からの展望</h3>
  27. <ul id="scroller">
  28. <li><img src="iyogatake-1.jpg" height="200" width="323"></li>
  29. <li><img src="iyogatake-2.jpg" height="200" width="323"></li>
  30. <li><img src="iyogatake-3.jpg" height="200" width="323"></li>
  31. <li><img src="iyogatake-4.jpg" height="200" width="323"></li>
  32. </ul>
  33.  
  34. </body>
  35. </html>
jquery.simplyscroll.js:simplyScrollからダウンロード
jquery.simplyscroll.css:simplyScrollからダウンロード
jquery.js:jQueryからダウンロード


参考にしたページ

simplyScroll | 設置サンプル


以上