Jquery工具选项卡速度

时间:2012-06-11 10:43:52

标签: jquery tabs customization slideshow

我正在尝试控制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/

由于

1 个答案:

答案 0 :(得分:2)

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

$(".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
);