> I am using the cycle plugin for an image gallery with thumbnails as my
> 'pager' and it's working quite great. However, on the page that opens
> up my slideshow I have a little 'sample' or 'preview' containing four
> selected images from the images inside the slideshow. Is there any way
> to set it up so that when the image in this preview is clicked, the
> slideshow opens up with the correct image (the one that was just
> clicked) showing in the content box? Right now, when any of these
> preview images are clicked the slideshow opens with the last selected
> slide (or first if none have been selected yet) showing.
>
> Would really appreciate tips regarding this. Thanks!
>
> -Tsvika

One of the options you can pass to cycle is the index of the
startingSlide (zero-based).  So you could start the show like this:

$('#slideshow').cycle({
    startingSlide: 3
});

If you need to restart a running slideshow at a particular index then
you must stop it first:

$('#slideshow').cycle('stop').cycle({
    startingSlide: 3
});

Reply via email to