[英]cycle2 carousel conflict with cycle2 slidershow
Cycle2 carousel conflicting with cycle2 slideshow at the same page . Cycle2轮播与同一页面上的cycle2幻灯片放映冲突。 Means i setup two different slider .Each of them having different Images.
意味着我设置了两个不同的滑块。每个滑块都有不同的图像。 Carousel works fine with $.fn.cycle.defaults.autoSelector = '.carousel';
Carousel可以与$ .fn.cycle.defaults.autoSelector ='.carousel'一起正常工作; and Slider works fine with $( $.fn.cycle.defaults.autoSelector ).cycle();
并且Slider与$($ .fn.cycle.defaults.autoSelector).cycle();可以正常工作 but not at the same page.
但不在同一页面上。 How to work them at same page?
如何在同一页面上工作? I 've tried $.fn.cycle.defaults.autoSelector = '.carousel,.slidershow';
我已经尝试过$ .fn.cycle.defaults.autoSelector ='.carousel,.slidershow'; did't work.
没用。
I had the same problem with a slideshow and a carousel on the same page. 幻灯片和轮播在同一页面上遇到了相同的问题。 In the slideshow section I used this:
在幻灯片部分,我使用了以下方法:
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery( '.cycle-slideshow' ).cycle();
});
</script>
In the carousel section I used: 在轮播部分中,我使用了:
<script>
$.fn.cycle.defaults.autoSelector = '.carousel';
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.