[thelist] Is it possible to change the table cell bgcolor by JavaScript?

Peter-Paul Koch gassinaumasis at hotmail.com
Wed Jan 24 04:46:31 CST 2001




>The problem is to address the cell object in JavaScript. Is it possible
>anyway?

The simplest solution by far (but it requires lots of code) is:

<TD onClick="this.bgColor = '#cc0000'">stuff</TD>

and onClick the background colour changes. Works in IE4+ and NN6. Nothing 
will work in NN4, because it can't change the bgcolor of a TD.

ppk

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the thelist mailing list