That will only change the 'pause' (rotation rate) for the entire show. I think that what luisbernas wants though is to change the mouseover pause (which currently actually stops the show temporarily) to a mouseover slowing of the rotation rate to one that's 10 times slower than the configured rate. Then on mouseout, instead of what it currently does (which is resume the show), instead of that, speed back up to the configured rate.
If I have that much right, we need to change (from the source code of www.montanashoplisboa.com/slide.htm):
Code:
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [450, 600], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["tee/1.jpg"],
["tee/2.jpg"],
["tee/3.jpg"],
["tee/3.jpg"],
["tee/4.jpg"],
["tee/5.jpg"],
["tee/6.jpg"],
["tee/7.jpg"],
["tee/8.jpg"],
["tee/9.jpg"],
["tee/10.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:500, cycles:0, wraparound:false,randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 10, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
to (additions highlighted):
Code:
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [450, 600], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["tee/1.jpg"],
["tee/2.jpg"],
["tee/3.jpg"],
["tee/3.jpg"],
["tee/4.jpg"],
["tee/5.jpg"],
["tee/6.jpg"],
["tee/7.jpg"],
["tee/8.jpg"],
["tee/9.jpg"],
["tee/10.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:500, cycles:0, wraparound:false,randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 10, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "",
oninit: function(){
var show = this.setting, inst = this, savedpause = show.displaymode.pause;
show.$wrapperdiv.unbind('mouseenter mouseleave').hover(function(){
clearTimeout(show.playtimer);
show.displaymode.pause = savedpause * 10;
show.playtimer = setTimeout(function(){inst.showslide(++show.curimage);}, show.displaymode.pause);
}, function(){
clearTimeout(show.playtimer);
show.displaymode.pause = savedpause;
inst.showslide(++show.curimage);
});
}
})
</script>
Notes: Be sure not to miss the added comma (red) here:
Also, further refinement may be required.
Bookmarks