PDA

View Full Version : Ultimate Fade-in slideshow stop image



Shapes
01-04-2011, 04:32 PM
1) Script Title: Ultimate Fade-in slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem:
Hello,

First, this slideshow script is great ! Way more easy to integrate than many scripts I've been using !

I just have a little problem, I would like my slideshow to run only once, so I've put "cycles=1", but the slideshow stops on first image, not on last... How could I make it stop on last image ?

Hoping for answers,
Best regards,
David aka Shapes

jscheuer1
01-04-2011, 05:38 PM
Add the highlighted as shown to your 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.

Shapes
01-05-2011, 09:07 AM
Hello John,

Thanks for your answer, it works !!!

Best regards,
David aka Shapes