PDA

View Full Version : ultimate fadein slideshow-stop pausing on mouseover



dwebster
05-01-2007, 12:00 AM
I am needing to remove the code that causes the slideshow to pause when moused over. Do I change something in this part of the code?

fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
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}
}

Script URL: http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

thetestingsite
05-01-2007, 02:20 AM
In the part that you place in the body of the html document, change from this:



<script type="text/javascript">
new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
</script>


to this:



<script type="text/javascript">
new fadeshow(fadeimages, 140, 225, 0, 3000, 0, "R")
</script>


That will stop the pausing onmouseover.
Hope this helps.