PDA

View Full Version : how to prevent pause in slideshow



cpn
02-01-2012, 07:26 PM
1) Script Title: Ultimate fade in slideshow 2.0/2.4

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

3) Describe problem:
would like to know how to prevent the slideshow from pausing on mouseover when in automatic mode.

Many thanks

jscheuer1
02-01-2012, 09:24 PM
In the on page call add the highlighted as shown:


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:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "",
oninit: function(){
var sObj = this.setting;
sObj.$wrapperdiv.bind('mouseenter', function(){sObj.ismouseover = false;});
}
})

Don't miss the added comma (red) after the togglerid value.

cpn
02-02-2012, 10:24 AM
Excellent! Thank you so much :)