Code:
<script type="text/javascript">
fadeSlideShow.prototype.oninit = function(){
var show = this;
function overOut(){
show.showslide.call(show, 'next');
}
this.setting.$wrapperdiv.unbind('mouseenter mouseleave').hover(overOut, overOut);
};
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [334, 500], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://dmassphoto.com/fade-example-new/img/ORAU-Before.jpg", "", "", ""],
["http://dmassphoto.com/fade-example-new/img/ORAU-after.jpg", "", "", ""]//<--no trailing comma after very last image element!
],
displaymode: {type:'manual', pause:2500, cycles:0, wraparound:false, randomize: false},//auto or manual, pause btwn slides(milliseconds),cycles b4 show stops, more at www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 2000, //transition duration (milliseconds) between slides
descreveal: "none",//style of description panel - ondemand, always, peekaboo, none
togglerid: "not", //use if you want to create nav controls for back/forth movement between slides. set "togglerid" to the ID of another DIV on your page that will house nav controls. Example: togglerid:"slideshowtoggler"
oninit: function(){
this.oninit();
}
})
var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [500, 353], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://dmassphoto.com/fade-example-new/img/mel-before.jpg", "", "", ""],
["http://dmassphoto.com/fade-example-new/img/mel-after.jpg", "", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'manual', pause:2500, cycles:0, wraparound:false, randomize: false},//auto or manual, pause btwn slides(milliseconds),cycles b4 show stops, more at www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 2000, //transition duration (milliseconds) between slides
descreveal: "none",//style of description panel - ondemand, always, peekaboo, none
togglerid: "not", //use if you want to create nav controls for back/forth movement between slides. set "togglerid" to the ID of another DIV on your page that will house nav controls. Example: togglerid:"slideshowtoggler"
oninit: function(){
this.oninit();
}
})
</script>
Bookmarks