[Javascript] overflow:scroll for <TBODY> on IE

Dan Costea costea.dan at ssi-schaefer.ro
Thu Jan 24 08:51:06 CST 2002


    Hi,

I made a table with scrollable body. It works perfect on NS 6, but it
doesn't work on IE 5.5 (I don't know why!).
What am I doing wrong or how can I do the same think for IE ?

the code is:

<TABLE BORDER="1">
<THEAD>
<TR>
   <TH>No.</TH>
   <TH>Name</TH>
</TR>
</THEAD>
<TBODY STYLE="overflow:scroll; height:300px;">
<SCRIPT>
for (var r = 0; r < 50; r++)
  document.write('<TR><TD ALIGN="right">' + r  + '<\/TD><TD WIDTH="75">Kibo
' + r + '<\/TD><\/TR>');
</SCRIPT>
</TBODY>
<TFOOT>
<TR>
<TH>No.</TH>
<TH>Name</TH>
</TR>
</TFOOT>
</TABLE>





More information about the Javascript mailing list