View Full Version : changing a cell's background color

07-31-2002, 08:54 PM
need some help once again :)
i want to change the background of a cell when i mouse over it. i tried it, but it doesn't work. I've tried everything from get element by id to document.main.navigator.abme, but ie keeps returning an object not found error. any help would be appreciated, and my website is at http://snakedevil1.tripod.com/vip3r/main.htm

<td width="92" id="abme" onMouseOver="document.getElementById(abme).bgcolor='#006600';" onMouseOut="this.bgcolor='#993333';">

07-31-2002, 09:04 PM
onmouseover="this.style.backgroundColor = 'newcolor'" onmouseout="this.style.backgroundColor = 'oldcolor'"

07-31-2002, 10:42 PM
thanx dude