2012-06-11 42 views
0

我想控制Jquery工具選項卡滑塊的速度,但不能完全得到它的工作。我不知道我在做什麼錯在這裏...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/

感謝

回答

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 
); 
+0

謝謝!正是我在找什麼... – Aditya