Click to See Complete Forum and Search --> : changing the color of a tet in a <TD>


pelegk1
08-25-2003, 02:41 AM
i want to
changing the color of the text that in a td
maybe using style propert
hoe do i do it?
10X:)
pelegk

Nevermore
08-25-2003, 03:14 AM
If you mean permenantly, on load, just put style="color:#999999"; in the td tag. (Or whatever.) If you want to change it dynamically, you need to give your td an id, and then the code is document.getElementById('urid').style.color="color";

e.g.
<a onclick="document.getElementById('td1').style.color='#990000';">Change Colour</a>