M
Michael McClune
Is it possible to change a <TD> background color on the fly with NN? There
are a long list of members info that I want to alternate the background
color of.
I have tried calling variation of the shown function "somefunction(this)"
from within each <TD> and accessing the <TD> style to no avail.
This works in IE:
<script type="text/JavaScript" language="JavaScript" >
<!--
function colortable(){
for (var i=0; i < pmdtable.rows.length; i += 2){
member.className = "white_bg";
// -or- member.bgcolor = "white"
}
}
// end javascript -->
</script>
<body onload = "colortable()">
<table id="pmdtable">
<tr>
<td id="member">
name
whatever
</td>
...
...
</tr>
</table>
Thanks
Mike
are a long list of members info that I want to alternate the background
color of.
I have tried calling variation of the shown function "somefunction(this)"
from within each <TD> and accessing the <TD> style to no avail.
This works in IE:
<script type="text/JavaScript" language="JavaScript" >
<!--
function colortable(){
for (var i=0; i < pmdtable.rows.length; i += 2){
member.className = "white_bg";
// -or- member.bgcolor = "white"
}
}
// end javascript -->
</script>
<body onload = "colortable()">
<table id="pmdtable">
<tr>
<td id="member">
name
whatever
</td>
...
...
</tr>
</table>
Thanks
Mike