0
我使用next/prev按鈕創建了jquery循環幻燈片,但除此之外,我希望幻燈片在單擊圖像時前進。我自己並不知道JavaScript,但還沒有足夠的代碼。這可能嗎?這是我到目前爲止有:如何使用jQuery Cycle添加額外的「下一步」按鈕?
$('#illustration .slides').cycle({
speed: 1,
timeout: 0,
prev: '#illustration .prev',
next: '#illustration .next',
pager: '#illustration-thumbs',
pagerAnchorBuilder: function(idx, slide) {
return '#illustration-thumbs li:eq(' + (idx) + ') a';
}
});
$('#illustration img').cycle('next');