Yah i am using the version 7.0 and it is good(i should say best when compared to 6.0).Still i am not able to get the desired result.
My situation is that the table is already built and in the body onload event i am capturing the table using document.all("tableid") and colouring the alternate row.Netscape is recognising the number of rows the table contains but it is not dynamically painting the rows of a table.
The style sheet is :
<STYLE TYPE="text/css">
<!--
TR.alt {font-size:8pt;background-color=#D7DBE7}
-->
</STYLE>
and i am calling using the foll. javascript function
<script language="JavaScript">
function setRowColor(){
var altcolor = "alt";
var rows = document.all("vtable").rows;
for(r = 0; r < rows.length; r++){
if ((r==0) || (r % 2) == 0){
rows(r).className = altcolor;
}
}
}
Where vtable is the table id.
Is this wrong.
Can any one give me the suggestion/code to get it.
Thanks.