110,532
社区成员
发帖
与我相关
我的任务
分享
<table width="100">
<tr>
<td height="20" bgcolor="#999999" onClick="DTest('a1')"> </td>
</tr>
<tr>
<td height="80" Id="a1"> </td>
</tr>
</table>
<table width="100">
<tr>
<td height="20" bgcolor="#999999" onClick="DTest('a2')"> </td>
</tr>
<tr>
<td height="80" Id="a2"> </td>
</tr>
</table>
<table width="100">
<tr>
<td height="20" bgcolor="#999999" onClick="DTest('a3')"> </td>
</tr>
<tr>
<td height="80" Id="a3"> </td>
</tr>
</table>
<script language="javascript" type="text/javascript">
function DTest(DataObjId){
document.getElementById(DataObjId).style.display = (document.getElementById(DataObjId).style.display == "none")?"block":"none";
}
</script>