[求助]按钮无效的js求助
我是js的究级菜鸟,想做一个点击表单的提交按钮后使按钮无效的js防止贴子重复发表,于是模仿本论坛做了如下的设置:<form name="reply" action="/replyservlet" method="post" onsubmit="return checkForm();">
<table width="90%" border="2" align="center" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><h4><span class="style2"><font size="2">标题: </font> </span>
<input name="title" type="text" size="80%"><font size="2"> </font>
</h4></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><div align="center">
<table border="0" width="100%">
<tr>
<td valign="top"><h4><span class="style2"><font size="2">内容:</font></span></h4></td>
<td>
<p><textarea name="article" cols="90%" rows="20"onkeyup="if(event.keyCode==13&&event.ctrlKey)document.getElementById('Submit').click();">
</textarea></p></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<font size="2">
<input type="image" src="image/queding.gif" name="Submit" value="提交" onClick="document.reply.submit()">
</font>
</div></td>
<td><div align="center"><body onLoad="MM_preloadImages('image/chongzhi02.gif')"><a href="javascript:document.reply.reset();" onMouseOver="MM_swapImage('chongzhi','','image/chongzhi02.gif',1)">
<font size="2"><img border=0 src="image/chongzhi.gif" name="chongzhi"></font></a></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</form>
<script language="JavaScript" type="text/javascript">
function checkForm()
{
var article = document.getElementById('article');
if(article!=null){
document.getElementById('Submit').disabled=true;
document.getElementById('Submit').src="image/bianji.gif";
return true;}
}
</script>
但是测试时发现 document.getElementById('Submit').src="image/bianji.gif";这句被执行,但 document.getElementById('Submit').disabled=true;却没有被执行(重复发贴依旧存在).也不知道自己错在了哪里,请老鸟大大帮助,谢谢!!