我正在使用鼓室彈簧片旋轉木馬響應式jQuery插件爲我的網站。該插件完美地在我的網站上運行。但是,我希望這個賭場能夠自動播放。Tympanus Elastislide Carousel自動播放
但是,我沒有找到自動移動傳送帶的任何代碼。
的滑塊插件鏈接:http://tympanus.net/codrops/2011/09/12/elastislide-responsive-carousel/
的Java腳本,我使用
<script type="text/javascript">
$('#carousel').elastislide({
// orientation 'horizontal' || 'vertical'
orientation : 'horizontal',
// sliding speed
speed : 500,
// sliding easing
easing : 'ease-in-out',
// the minimum number of items to show.
// when we resize the window, this will make sure minItems are always shown
// (unless of course minItems is higher than the total number of elements)
minItems : 3,
// index of the current item (left most item of the carousel)
start : 0,
// click item callback
onClick : function(el, position, evt) { return false; },
onReady : function() { return true; },
onBeforeSlide : function() { return false; },
onAfterSlide : function() { return false; }
});
</script>
任何一個可以幫助如何滑塊機器會自動播放?我試過自動播放:是的。但是,不工作。
我試着用滾動:1 但是,不能正常工作。 –
看到第一個鏈接,它會給出所有的輪播類型,看演示你可以找到你想要的滑塊。 –
你好滑動js文件中沒有自動滾動屬性,請嘗試其他自動滾動滑塊。 –