Click to See Complete Forum and Search --> : newbie javascript question


leedo
07-03-2003, 02:14 AM
I am simply attempting to have a links color change when I rollover any part of a table cell. I got this working in Mozilla but IE6 gives me errors.
Here is what I am currently using.

<td onMouseOver="document.links['about'].style.color='#333333'; this.style.backgroundColor='#cccccc';"
onMouseOut="this.style.backgroundColor='#333333'; document.links['about'].style.color='#ffffff';">
<a href="about.html" name="about">about</a>
</td>

IE6 give me an error that says, "document.links.about.style is either null or not an object ...'. Is there a better way to go about doing this? Thanks for any help.

leedo
07-03-2003, 02:42 AM
nevermind. found about getElementById from another thread and taht seems to work in ie.