This script already has that:
http://www.dynamicdrive.com/dynamici...army/index.htm
However Ufade also has a stop/go routine of sorts built in. If you set it it to have pause on mouse over (with a one, where shown below in the on page call):
Code:
<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
</script>
You may access its mouse over flag like so:
HTML Code:
<a href="#" onclick="fadearray[0].mouseovercheck=1;return false;">Stop</a>
<a href="#" onclick="fadearray[0].mouseovercheck=0;return false;">Go</a>
The 0 in fadearray[0] indicates the first show on the page, just like discussed before for the style.
But unless you also edit the script by removing or commenting out (near the end of the main script) all of these lines:
Code:
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
If the user has hit stop, and then moves the mouse over the show and away, it will start back up again.
Bookmarks