If sticking with Ultimate Fade, you could select the images from a master array before inserting them in the init. If all of the images are of the same size or would fit into the same sized box:
Code:
var galleries = [];
(function(){
var images = [
['photo1.jpg'],
['photo2.jpg'],
['photo3.jpg'],
['photo4.jpg'],
['photo5.jpg'],
['photo6.jpg'],
['photo7.jpg'],
['photo8.jpg'],
['photo9.jpg'],
['photo10.jpg'] // <-- no comma after last image array
], i = 1;
images.sort(function(){return 0.5 - Math.random();});
for(i; i < 4; ++i){
galleries.push(new fadeSlideShow({
wrapperid: "fadeshow" + i, //ID of blank DIV on page to house Slideshow
dimensions: [140, 225], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: images.splice(0, 3),
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
}));
}
})();
This is instead of the three inits you must currently be using and will populate:
HTML Code:
<div id="fadeshow1"></div><div id="fadeshow2"></div><div id="fadeshow3"></div>
Note: If linking the images, targeting the links, and/or adding descriptions, this may be done in the usual fashion, ex:
Code:
var images = [
['photo1.jpg', "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
['photo2.jpg'],
['photo3.jpg'],
['photo4.jpg'],
['photo5.jpg'],
['photo6.jpg'],
['photo7.jpg'],
['photo8.jpg'],
['photo9.jpg'],
['photo10.jpg'] // <-- no comma after last image array
Bookmarks