Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change a tables backcolor when the mouse is over/off it 1

Status
Not open for further replies.

kingkeith

Programmer
May 8, 2002
18
GB
Hi. Can anyone tell me how to make a table so that it's background color changes when your mouse is over it. And then change it back again when the mouse is off it.

I am going to be using it as a 'box' for my links, which will sit in the middle. ;)

Thanks in advance.
Keith
sk_kdhall@hotmail.com
 
<table
border=&quot;1&quot;
bordercolor=&quot;black&quot;
bgcolor=&quot;white&quot;
cellspacing=&quot;0&quot;
cellpadding=&quot;0&quot;
onmouseover=&quot;this.style.background='black'&quot;
onmouseout=&quot;this.style.background='white'&quot;
>
<tr>
<td><font color=&quot;red&quot;>test me !</font></td>
</tr>
</table> ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
your welcome ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top