Log in

View Full Version : flashy picture/button



IanMarlowe
07-18-2005, 05:00 AM
my code:



<a href="index.html" onmouseover="image1.src='site_map_invert.gif';"
onmouseout="image1.src='site_map.gif';">
<img name="image1" src="site_map.gif" border=0 width="119" height="25"></a>


works fine. The problem is that if I try to put more than one flashy image, they all get disabled. It works if only one button is loaded with the script, but if i try to put another one (changing image sources of course) it doesn't work. any ideas?

jscheuer1
07-18-2005, 08:06 AM
You need to use a unique name for each set up like this:

image1

image2

etc.

IanMarlowe
07-18-2005, 08:22 AM
oh my god I feel stupid!