代码之家  ›  专栏  ›  技术社区  ›  weaveoftheride

jquery jcycle插件中的随机循环内容

  •  0
  • weaveoftheride  · 技术社区  · 16 年前

    http://jquery.malsup.com/cycle/

    是否可以使用jquery jcycle插件随机化循环内容?

    干杯

    安迪

    3 回复  |  直到 16 年前
        1
  •  1
  •   Nick Craver    16 年前

    有一个 random 选项,设置为 1 (或) true ,如下所示:

    $('#myDiv').cycle({ 
      fx: 'cover', 
      random: 1
    });
    

    See the demo here 和 full options list here .

        2
  •  1
  •   Kevin    16 年前

    http://jquery.malsup.com/cycle/options.html

    有一个 random 选项引用中的选项。试试看。

        3
  •  0
  •   weaveoftheride    16 年前

    可能是这样:

    random:0,//对于random为true,对于sequence为false(不适用于shuffle-fx)