jQuery Cycle: help with "next:" option
I am running a fairly simple repeating, fading slide show:
$('#slidecontainer').cycle({
fx: 'fade',
timeout: 8000,
speed: 800,
next: '#slidecontainer',
pause: 0
});
The idea being that the slides will auto-transition on a 8000ms timeout, but that the user can speed it along by clicking on on a slide to immediately advance to the next. This works fine.
What I would like to do, however, is to disable the user's ability to manually advance to the next slide for some of the slides in the slideshow.
In the example above, I have two classes of slides in the slide show:
.pictureslide
.textslide
I only want the user to be able to manually advance past a pictureslide, not a textslide.
I thought I might be able to set the next: option as follows:
$('#slidecontainer').cycle({
fx: 'fade',
timeout: 8000,
speed: 800,
next: ".pictureslide",
pause: 0
});
But this didn't seem to work. It essentially just had the effect of disabling manual click-advance for the entire slideshow.
Any thoughts on this?