Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts

    changing a cell's background color

    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';">
    Computers are simple for the complex mind, yet complex for the simple mind

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    onmouseover="this.style.backgroundColor = 'newcolor'" onmouseout="this.style.backgroundColor = 'oldcolor'"

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanx dude
    Computers are simple for the complex mind, yet complex for the simple mind


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •