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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bgcolor

Status
Not open for further replies.

geethanandh

Programmer
Jun 5, 2002
21
US
hello
how do i change the background & foreground color of a cell in a table onmouseover() and onmouseout() event.

bye
geethanandh
 
<table><tr><td onmouseover=&quot;this.style.backgroundColor='#000000'; this.style.color='#ffffff';&quot; onmouseout=&quot;this.style.backgroundColor='#ffffff';

this.style.color='#000000';&quot;>test</td></tr></table>

that should do it...at least for internet explorer...netscape doesn't support the td onmouseover event...you'll have to do that with layers mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top