[Javascript] RollOver Image Script

Peter Brunone peter at brunone.com
Fri Feb 27 10:53:47 CST 2004


Hi Uri,

   One thing I noticed is that your colors need to be represented as strings, i.e. '#CCCCCC' (you don't have quotes around them).  Aside from that, I'm not sure if backgroundcolor is a valid property, and if it is, there's probably a capital "C" in the middle.  Check the docs to be sure.

Cheers,

Peter

Original Message:
>From: "Grinwald, Uri" <UGrinwald at dynamic.ca>

>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





More information about the Javascript mailing list