就像这个,参考这个案例的http://www.internetke.com/jsEffects/2015021501/,
我已经设置了 autoPlay:true, ,为什么还是不能自动播放?只能拖动,帮下忙,谢谢!!
<script>
jQuery(document).ready(function($) {
$('#full-width-slider').royalSlider({
arrowsNav: true, //是否用箭头导航
loop:true, //是否从最后一张幻灯片滑动到第一张
keyboardNavEnabled: true, //是否允许键盘按键控制
controlsInside: false,
imageScaleMode: 'fill', //图片缩放模式fill或 fit或fit-if-smaller 或none
arrowsNavAutoHide: false, //箭头导航是否自动隐藏
autoScaleSlider: true, //是否基于基础宽度自动更新
autoScaleSliderWidth: 840,
autoScaleSliderHeight: 250,
controlNavigation: 'bullets', //导航类型thumbnails或bullets或tabs或none
thumbsFitInViewport: false,
navigateByClick: true, //是否允许在幻灯片上点击鼠标导航
startSlideId: 0, //从第几张幻灯片开始播放 0开始
autoPlay:true,
transitionType:'move', //切换过渡类型 move或fade
slidesOrientation:'horizontal', //滑动方向 上下 'vertical'左右‘horizontal’
globalCaption: true,
imageAlignCenter: true, //幻灯片是否居中对齐
deeplinking: {
enabled: true,
change: false
},
imgWidth: 2000, //所有图片的基本宽度
imgHeight: 476,
});
});
</script>