Click to See Complete Forum and Search --> : how to stop a mouseover fade?


Limelight
07-16-2003, 02:13 PM
Hey everyone! I'm learning about javascript and played with the script from this page: http://www.codelifter.com/main/javascript/slideshow3.html

I replaced the onload with onmouseover for one of my images, question is how do I get the fade to stop onmouseout? Can anyone help? Thanks!

Khalid Ali
07-16-2003, 05:24 PM
You will need to play with this part of the code

if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}


you would want to stop the setTimout function from executing once a mouseout is triggered that can be done using this tss variable you already have
tss = setTimeout('runSlideShow()',

now in the onmouseout do this
clearTimout(tss)

Limelight
07-16-2003, 05:56 PM
Thanks for helping! So all I need is the mouseout "clearTimout(tss)"?

Any chance at adding seperate sets of rotating pictures? Like If I want 3 rotating in 1 table and 3 rotating in another? If thats too much thanks for all your help anyway :D :p :)