朱梓骁陆立文图片:onclick哪里错啦?

来源:百度文库 编辑:高考问答 时间:2024/05/01 02:41:43
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr onClick="new element.toggle('login')">
<td width="100%" height="35" valign="top">
<img src="13.jpg" width="373" height="30">
</td>
</tr>
<tr>
<td height="105" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody id="login">
<tr>
<td width="373" height="105" valign="top" bgcolor="#FF0000">
<form name="form1" method="post" action="1.ASP">
</form>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>

为什么运行后点击13.jpg不会隐藏下面的tbody?哪里错了呀?
难道要在上面加script language?

你把onclick写在img里试试看