需要修复主页滑块,以便它不会在末尾飞回所有幻灯片.需要成为一个无缝循环.但我不知道我做错了什么.示例:
http://3dollar.vigorbranding.com/
<script type="text/javascript">
jQuery(window).load(function() {
jQuery('#carousel').flexslider({
animation: "slide",controlNav: false,animationLoop: false,slideshow: true,itemWidth: 187,itemmargin: 0,asNavFor: '#slider'
});
jQuery('#slider').flexslider({
animation: "slide",animationLoop: true,<?PHP if (ot_get_option('autoslide') == 'yes') { ?>
slideshow: true,//Boolean: Animate slider automatically
slideshowSpeed: <?PHP echo ot_get_option('delay') ?>,<?PHP } else { ?>
slideshow: false,<?PHP } ?>
sync: "#carousel",start: function(slider) {
jQuery('body').removeClass('loading');
}
});
});
</script>
解决方法
将animationLoop设置为true而不是false