2011-09-28 57 views
0

我刚刚安装了jQuery Tabs幻灯片插件并希望它自动播放。但是,当我放入自动播放选项时,它执行得非常不均匀,完全不像当手动按下播放按钮时。在jQuery选项卡上设置自动播放幻灯片

<script language="JavaScript"> 

$(function() { 

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

// enable "cross-fading" effect 
effect: 'fade', 
fadeOutSpeed: "slow", 

// start from the beginning after the last tab 
rotate: true 

// use the slideshow plugin. It accepts its own configuration 
}).slideshow({autoplay:true}); 
}); 
</script> 

我把自动播放代码正确吗?这里是文档。 http://flowplayer.org/tools/tabs/slideshow.html谢谢!

回答

1

这里是我的样子

$(document).ready(function() { //this is jQuery's "on Load" event 
     $("#featured > ul").tabs({ fx: { opacity: 'toggle'} }).tabs("rotate", 5000, true); 
    });