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

Help changing cell bgcolor dynamically.

Status
Not open for further replies.

StellaIndigo

IS-IT--Management
Sep 19, 2002
118
GB
I've got this script that should be changing the cell background colour but it doesn't work, any ideas anyone?

<td width=&quot;86&quot; bgcolor=&quot;#6B9AD6&quot; height=&quot;25&quot; onmouseover=&quot;this.bgcolor='#FFFFFF'&quot; onmouseout=&quot;this.bgcolor='#6B9AD6'&quot;>
Hello</td>
 
Took me a while to see it but need capitals in bgColor like so

<td width=&quot;86&quot; bgcolor=&quot;#6B9AD6&quot; height=&quot;25&quot; onmouseover=&quot;this.bgColor='#FFFFFF'&quot; onmouseout=&quot;this.bgColor='#6B9AD6'&quot;>
Hello</td> Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Many thanks.

I swear you can look at a piece of code over-and-over and you go blind to the most simple of mistakes.

Stella
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top