Oh yeah, thats right. The array of images used by Ultimate Fade is multidimensional. So you need to convert to a multidimensional array. Now, I'm a little confused as to the name of the original array of image filenames, if it is datastrip:
Code:
for (var datamulti = [], i = datastrip.length - 1; i > -1; --i){
datamulti[i] = [datastrip[i]];
}
Then:
Code:
var mygallery=new fadeSlideShow({
wrapperid: "mooddemo1", //ID of blank DIV on page to house Slideshow
dimensions: [100, 100], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: datamulti,
displaymode: {type:'auto', pause:2000, cycles:0, wraparound:false, randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1000, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
Or, if you don't need to preserve the original datastrip array:
Code:
for (var i = datastrip.length - 1; i > -1; --i){
datastrip[i] = [datastrip[i]];
}
Then:
Code:
var mygallery=new fadeSlideShow({
wrapperid: "mooddemo1", //ID of blank DIV on page to house Slideshow
dimensions: [100, 100], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: datastrip,
displaymode: {type:'auto', pause:2000, cycles:0, wraparound:false, randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1000, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
Bookmarks