通过以下代码设置图片数量以及自动播放时间等属性
$(document).ready(function() { $('.roundabout_box ul').roundabout({ duration: 1000, minScale: 0.6, autoplay: true, autoplayDuration: 5000, minOpacity: 0, maxOpacity: 1, reflect: true, startingChild: 3, autoplayInitialDelay: 5000, autoplayPauseOnHover: true, enableDrag: true }); });
{loop $diyitem['data'] $menuitem} <li style="width:90%;height:320px;margin:0px;list-style:none;display:block;"> <div style="height:55%;background:#fff;"> <a href="{php echo $menuitem['linkurl']}" style="display:inline;"> <div style="background:url('{php echo tomedia($menuitem['imgurl'])}') no-repeat center;width:100%;height:100%;"> </div> </a> </div>