버튼을 회색으로 바꾸는 프로토콜 카운트다운

1392 단어 htmlaspGo
<html>
<body>
benben
<table name=agree border="0" cellpadding="10" cellspacing="0" align=center width="80%">
<tr align=center>
<td width="50%" align="right"> 
<FORM name=register method=post action="">
<input type="hidden" name="action" value="agree"><INPUT class="go-wenbenkuang" type=submit value="      " name=Submit>
</FORM> 
</td>
<td width="50%" align="left">
<FORM action=index.asp method=post><INPUT class=go-wenbenkuang type=button value="      "></FORM></td>
</tr>
</table>

<SCRIPT>
 secs = 60; // Number of secs to delay -CHINA-studio
 wait = secs * 100;
 document.forms.register.Submit.disabled =true;
 for(i=1;i<=(wait/100);i++) {
  window.setTimeout("doUpdate(" + i + ")", i * 100);
 }
 window.setTimeout("Timer()", wait);

 function doUpdate(num) {
  if(num == (wait/100)) {
   document.forms.register.Submit.value = "      ";
  } else {
   wut = (wait/100)-num;
   document.forms.register.Submit.value = "         (" + wut + ")";
  }
 }

 function Timer() {
  document.forms.register.Submit.disabled =false;
}
</SCRIPT>
</body>
</html>

좋은 웹페이지 즐겨찾기