你可以用
<script>
function hidetb(i)
{
whichEl = eval("t" + i);
whichEl.style.display = "none";
}
</script><div id="t1" style="display:">
<table>
<tr style="CURSOR: hand" onclick=hidetb(1)><td>fdf</td></tr>
</table>
</div>
<div id="t2" style="display:">
<table>
<tr style="CURSOR: hand" onclick=hidetb(2)><td>fdfff</td></tr>
</table>
</div>