<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<TABLE id="t1">
<TR id="tr1" style="display:none">
<TD id = 'td11' style="display:none">322</TD>
<TD id = 'td12' >22</TD>
</TR>
<TR id="tr2" >
<TD id = 'td21' style="display:none">322</TD>
<TD id = 'td22'>22</TD>
</TR>
<TR id="tr3" >
<TD id = 'td31' style="display:none">322</TD>
<TD id = 'td32'>22</TD>
</TR>
</TABLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
//cellIndex不对,但我要使用cellIndex, 哎!郁闷。。。
alert("td11 index:" + document.all.td11.cellIndex + "\ttd12 index:" + document.all.td12.cellIndex);
//rowIndex正常
alert("tr1 index:" + document.all.tr1.rowIndex + "\ttr2 index:" + document.all.tr2.rowIndex);
//对
alert(document.all.tr1.cells[1].id);
//-->
</SCRIPT>
</BODY>
</HTML>