• jquery.slides.js


    http://slidesjs.com/#docs

    一款强大的,专业的幻灯片组件,全方位对幻灯片的速度。。全方位的控制;

     1 $(function(){
     2   $("#slides").slidesjs({
     3     play: {
     4       active: true,
     5         // [boolean] Generate the play and stop buttons.
     6         // You cannot use your own buttons. Sorry.
     7       effect: "slide",
     8         // [string] Can be either "slide" or "fade".
     9       interval: 5000,
    10         // [number] Time spent on each slide in milliseconds.
    11       auto: false,
    12         // [boolean] Start playing the slideshow on load.
    13       swap: true,
    14         // [boolean] show/hide stop and play buttons
    15       pauseOnHover: false,
    16         // [boolean] pause a playing slideshow on hover
    17       restartDelay: 2500
    18         // [number] restart delay on inactive slideshow
    19     }
    20   });
    21 });

    前台:

     1 <!doctype html>
     2 <head>
     3   <style>
     4     /* Prevents slides from flashing */
     5     #slides {
     6       display:none;
     7     }
     8   </style>
     9 
    10   <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    11   <script src="jquery.slides.min.js"></script>
    12 
    13   <script>
    14     $(function(){
    15       $("#slides").slidesjs({
    16          940,
    17         height: 528
    18       });
    19     });
    20   </script>
    21 </head>
    22 <body>
    23   <div id="slides">
    24     <img src="http://placehold.it/940x528">
    25     <img src="http://placehold.it/940x528">
    26     <img src="http://placehold.it/940x528">
    27     <img src="http://placehold.it/940x528">
    28     <img src="http://placehold.it/940x528">
    29   </div>
    30 </body>
  • 相关阅读:
    正则表达式30分钟入门教程
    21 个HTML网页转RSS Feeds的工具
    批量去除PHP文件中bom的PHP代码
    WEB网页采集技术参考
    xcache
    Sonix SN9P701 OCR点读笔二维码识别源码
    UI设计素材资源网站推荐
    解决电信DNS劫持
    自学电子技术的最佳方法
    wp资源汇总
  • 原文地址:https://www.cnblogs.com/woloveprogram/p/4968635.html
Copyright © 2020-2023  润新知