Code:
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [940, 314], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["photo1.jpg", "", "", "", 1000, 100],
["photo2.jpg", "", "", "", 6000, 1000],
["photo3.jpg", "", "", "", 10000, 5000],
["photo4.jpg", "", "", ""],
["photo5.jpg", "", "", ""],
["photo6.jpg", "", "", ""],
["photo7.jpg", "", "", ""],
["photo8.jpg", "", "", ""],
["photo9.jpg", "", "", ""],
["photo10.jpg", "", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "fadeshow1toggler",
oninit: function(){
this.setting.dpause = this.setting.displaymode.pause;
this.setting.dfade = this.setting.fadeduration;
},
onslide: function(c, i){
this.setting.displaymode.pause = this.setting.imagearray[i][4] || this.setting.dpause;
this.setting.fadeduration = this.setting.imagearray[i][5] || this.setting.dfade;
}
})
See the numbers in red? They control the pause and fadeduration rate respectively for the individual slides. If they're missing the default values are used. If only one of then is given for a particular slide, it will be pause rate and the fadeduration rate will be the default.
Bookmarks