源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

js实现索引图片切换效果

  • 时间:2020-02-23 17:13 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:js实现索引图片切换效果
本文实例讲述了js实现索引图片切换效果的代码。分享给大家供大家参考。具体如下: 运行效果截图如下: [img]http://files.jb51.net/file_images/article/201511/20151121141207530.gif?20151021141233[/img] 具体代码如下 [b]html代码: [/b]
<div id="slideshowHolder">
    <img src="img/1.jpg" />
    <img src="img/2.jpg" />
    <img src="img/3.jpg" />
    </div>
[b]css代码: [/b]
.ft-prev, .ft-next {
      background-color: #000;
      padding: 0 10px;
      color:#fff;
    }
js代码:
$(document).ready(function () {
      $('#slideshowHolder').jqFancyTransitions({
        effect: '', // wave, zipper, curtain
        width: 500, // width of panel
        height: 700, // height of panel
        strips: 20, // number of strips
        delay: 5000, // delay between images in ms
        stripDelay: 50, // delay beetwen strips in ms
        titleOpacity: 0.7, // opacity of title
        titleSpeed: 1000, // speed of title appereance in ms
        position: 'alternate', // top, bottom, alternate, curtain
        direction: 'fountainAlternate', // left, right, alternate, random, fountain, fountainAlternate
        navigation: true, // prev and next navigation buttons
        links: true // show images as links
      });
    });
以上就是js实现索引图片切换效果的主要代码,希望对大家动手实现图片切换效果。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部