【问题标题】:Jquery tools tab speedJquery 工具选项卡速度
【发布时间】:2012-06-11 10:43:51
【问题描述】:

我正在尝试控制 Jquery 工具选项卡滑块的速度,但无法使其正常工作。我不确定我在这里做错了什么......

我尝试了以下代码,但没有奏效......

$(function() {
      $(".slidetabs").tabs(".images > div", {

    // enable "cross-fading" effect
    effect: 'fade',
    fadeOutSpeed: "slow",
    // start from the beginning after the last tab

    rotate: true,

   // Autoplay doesn't work               
   autoPlay: true,  
   interval: 3000     

    // use the slideshow plugin. It accepts its own configuration
    }).slideshow();

});

http://jsfiddle.net/shavindra/j7UcM/9/

所以我尝试了这个......它有效,但我无法控制间隔

$(".slidetabs").data("slideshow").play({

      // interval configuration doesn't work    
      interval: 3000
     });

文档在这里:http://jquerytools.org/documentation/tabs/slideshow.html

JSfiddle 链接在这里http://jsfiddle.net/shavindra/j7UcM/10/

谢谢

【问题讨论】:

    标签: jquery tabs customization slideshow


    【解决方案1】:

    你必须像这样设置这个值:

    $(".slidetabs").tabs(".images > div.slidebox", {
    
        // enable "cross-fading" effect
        effect: 'fade',
        fadeOutSpeed: "slow",
        //fadeOutSpeed: 200,
    
        // start from the beginning after the last tab
        rotate: true,
        autopause: false
    // use the slideshow plugin. It accepts its own configuration
    }).slideshow(
        {autoplay: true, interval: 7000} // SET INTERVAL HERE
    );
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多