SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Nov 9, 2005, 03:07 #1
- 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
-
Nov 9, 2005, 03:22 #2
- Join Date
- Nov 2005
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Because the DOM property is named bgColor, not bgcolor.
-
Nov 9, 2005, 04:07 #3
- 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