PDA

View Full Version : Ultimate Fade Slideshow - Stop On Last Image



hierogfx
05-08-2012, 02:27 PM
Ultimate Fade Slideshow

http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

I wish to run the slideshow once and have it stop and remain on the last image displayed. By default the slideshow returns to the first image and stops. Is there a way to alter one of the parameters to have the script stop on the last image. I've played around with some of the parameters without any success.

jscheuer1
05-08-2012, 03:32 PM
Add the highlighted as shown to your on page init:


var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."],
["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
["http://i30.tinypic.com/531q3n.jpg"],
["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:1, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "",
oninit: function(){
--this.setting.totalsteps;
}
})

Don't miss the added comma (red) after the togglerid value.

hierogfx
05-09-2012, 12:25 AM
John -
Thanks for the help . . . your code worked perfect and I never would have figured it out . . .

Bill

katebellami
05-29-2012, 09:24 PM
Thank you also!! This was my issue as well, and no way I would have figured it out either!

dmwhipp
04-24-2013, 09:48 PM
Thanks John - I needed this too.
Deborah