preventing jquery cycle loop
If you worked with jquery's cycle plugin, you know you can make a slide-show with some images or div's. My problem is that I want to prevent the user to go the first slide when he got to the end, or go to the last slide when he is at the first.
Normally, that can be achieved by a 'onAfter' function where one can hide the previous or next buttons if the current slide is the first or last.
Only problem is that the buttons are present until the slide is over. So basically if I'm on the second slide and press 'previous', the second slide goes away while the first come in place, and only after the effect is over, the previous button is hidden. And obviously, if the user presses again on the 'previous' button while the effect is taking place, the first slide will also go away and the last will show up. I read the documentation on the available option of the cycle and didnt found anything that could allow the user to slide only between the first and last and basically prevent loops from happening.
Anybody got an idea on how to achieve this?
Thanks in advance