[Javascript] RollOver Image Script

Chris Tifer christ at saeweb.com
Fri Feb 27 09:22:29 CST 2004


My guess is that it's telling you #FFFFFF has not been defined.
--------------------------
document.getElementById('changebgcolor').style.backgroundcolor=#FFFFFF;

would normally be written like:

document.getElementById('changebgcolor').style.backgroundcolor= "#FFFFFF"
--------------------------

Does that give you a good enough hint?  By my best guess, that's your
problem.

Chris Tifer


----- Original Message ----- 
From: "Grinwald, Uri" <UGrinwald at dynamic.ca>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Friday, February 27, 2004 10:07 AM
Subject: RE: [Javascript] RollOver Image Script


Can anyone discern why this is not working?

<table>
<td id="changebgcolor" style="background-color:#FFFFFF;">Main Menu</td>
<td>Eggs</td>
<td>Ham</td>
</table>
<p>&nbsp;</p>
<p><a href="#"
onMouseOver="document.getElementById('changebgcolor').style.backgroundco
lor=#CCCCCC;"
onMouseout="document.getElementById('changebgcolor').style.backgroundcol
or=#FFFFFF;"><img src="images/rallincomedet.gif" width="200"
height="205" border="0"></a></p>
</body>

Thanks,
Uri
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list