0

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

谢谢

4

1 回答 1

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
);
于 2012-08-15T17:01:08.737 回答