Thanks for the quick response! I implemented what you suggested, and now the correct image is displayed when the slideshow is shown, however, I am having an issue with my pager. It works the first time, but once the slideshow is shown a second time, the pager thumbnails do not function until I click on the one that belongs to the slideshow that was shown as 'startingSlide'. pretty weird, eh?
Here's the function that my preview thumbnails that open up the slideshow call onclick: function startSlideshow(id){ $('#image-attach-body').cycle('stop'); $('#image-attach-body').cycle({ fx: 'fade', speed: 300, timeout: 0, pager: '#image_gallery', prev: '#prev', next: '#next', nowrap: 1, startingSlide: id, // callback fn that creates a thumbnail to use as pager anchor pagerAnchorBuilder: function(idx, slide) { if(gallery_thumbnails[idx]) return '<li id="thumb_' + idx +'"><a href="#"><img src="' + gallery_thumbnails[idx] + '" /></a></li>'; else return '<h3>Weitere Bilder:</h3>'; } }); $('#image_gallery').show(); $('#gallery').jqm().jqmShow(); } I think this might be related to the pagerAnchorBuilder being called multiple times (each time the slideshow is hidden and then reopened). What can be done about this? Thanks! -Tsvika On Sun, May 18, 2008 at 7:41 PM, Mike <[EMAIL PROTECTED]> wrote: > > > 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 > }); > > > >