1
我需要工作的第一個滑塊導航和第二個自動,但點擊導航按鈕上運行兩個滑塊。代碼在這裏:jQuery Cycle2多個幻燈片導航
<script type="text/javascript">
jQuery(function(){
jQuery('.scrollsingle').cycle('prev');
jQuery('.scrollsingle ').cycle('next');
});
</script>
<button data-cycle-cmd="prev">Prev</button>
<button data-cycle-cmd="next">Next</button>
<div class="images scrollsingle cycle-slideshow"
data-cycle-fx="scrollHorz"
data-cycle-timeout="4000"
data-cycle-slides="> div">
<div>content</div>
<div>content</div>
<div>content</div>
<div>content</div>
</div>
<article class="span3 box boxstaff cycle-slideshow"
data-cycle-fx="scrollHorz"
data-cycle-timeout="2000"
data-cycle-slides="> div"
>
<div>content</div>
<div>content</div>
<div>content</div>
<div>content</div>
</article>
考慮標誌着答案正確答案。 – leymannx