SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist ikeo's Avatar
    Join Date
    Oct 2004
    Location
    Austin Texas
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why won't onmouseover/out work on td bgcolor

    This is more of an academic exercise than anything at this point, but I really want to know why this won't work

    <td bgcolor="#BACDF1" onMouseover="this.bgcolor='white';" onMouseout="this.bgcolor='#BACDF1';" align="center">Partners</td>

    but this will

    <td style="background-color:#BACDF1; border-right: 1px solid black;" onMouseover="this.style.backgroundColor='white';" onMouseout="this.style.backgroundColor='#BACDF1';" align="center" style="border-right: 1px solid black;">Testimonials</td>

    Thanks

  2. #2
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because the DOM property is named bgColor, not bgcolor.

  3. #3
    SitePoint Evangelist ikeo's Avatar
    Join Date
    Oct 2004
    Location
    Austin Texas
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Boy do I feel silly.
    Thanks for the pointer.


Bookmarks

Posting Permissions

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