I'm using the code below to initiate a slideshow:
target.cycle({
timeout: 0,
before: onBefore,
after: onAfter,
next: target + ', #slide-next',
prev: '#slide-prev'
})
My only problem is I'm having trouble defining the next parameter which is supposed to take the selector of the slideshow itself; the variable target and the id of #slide-next
Unfortunately this code does not work.
When I use next: '#slide-next', the slides transition when I press the next button, when I use, next: target, the slides transition when I click on the slides themselves but when I use next: target + ',#slide-next', they transition only when I click on the slideshow and not on the next button.
How do I need to define next?
target?next: null, // element, jQuery object, or jQuery selector string for the element to use as event trigger for next slidenext: '#slide-next',the slides transition when I press the next button, when I use,next: target,the slides transition when I click on the slides themselves but when I usenext: target + ', #slide-next',they transition only when I click on the slideshow and not on the next button.#slideshow.