Rollover-image in a table?!?

I'm using this rollover funtion:

image1= new Image; image1.src="image.gif";
image2= new Image; image2.src="image.gif";

function rollover(imagename, newsrc)


And when I try to use it on a picture that is in a table, It wont work, it works everywhere else, but not in a table..

Any tips? is this not a good way to do this? is there any other functions that works better?

Please help!
Martin Zazinow
February 13,
And this is what I put on the link/image

<a href="index.htm" target=""
onMouseOver="rollover('image', image2)"
onMouseOut="rollover('image', image1)">
<img src="image1.jpg"></a>
Martin Zazinow
February 13,
I believe you may need to add the name/id of the image to make that code work. You also may want to re-think your logic seems a little off. After you mouseover, your mouseout will have the same image.

<img src="image1.jpg" id="image" name="image"></a>
Tony (www.FriendsOfAW.com)
February 14,
omg LOL! I just wrote the code too fast, SORRY!!!! just wanted to show what kind of script I used!!!!
Martin Zazinow
February 18,

This topic is archived.

See also:

Back to support forum