
Originally Posted by
momonline
Code:
leftrightslide[0]='<a href="http://www.....org/MOMa1.htm"></DIV><img src="a1_small.jpg" height="45" border=1></a>'
leftrightslide[1]='<a href="http://www......org/MOMb1.htm"><img src="c1_small.jpg" height="45" border=1></a>'
Probably just forgot to get rid of the red </DIV> when you got rid of the opening tag for it but, a closing tag in a spot like this that has no opening tag can sometimes create real problems.
On to your question, you can use a simple rollover event, you just need to make sure your quotes are kept straight and/or escaped if needed (like quotes inside strings delimited by like quotes must be escaped, otherwise the script thinks it has reached the end of the string):
Code:
leftrightslide[1]='<a href="http://www......org/MOMb1.htm"><img src="c1_small.jpg" height="45" border="1" onmouseover="this.src=\'c1_small_over.jpg\';" onmouseout="this.src=\'c1_small.jpg\';"></a>'
It might be a good idea to preload your rollover images so that there is little or no delay come rollover time but, that is another lesson. Also, due to event bubbling, some browsers may have a problem with this because the entire conveyor pauses onmouseover, if memory serves.
Bookmarks