Javascript
<table name=agree border= "0" cellpadding= "ten" cellspacing= "0" align=center width= "80%" >
<tr align=center>
<TD width= "50%" align= "right" >
<form Name=register method=post action=reg_shang.asp?action=yes>
<input type= "hidden" name= "action" value= "agree" ><input class= "Go-wenbenkuang" type=submit value= "consent to register" name =submit>
</FORM>
</td>
<TD width= "50%" align= "left" >
<form action=index.asp method=post><input Class=go-wenbenkuang type=submit value= "I Disagree" ></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 = "Consent to register";
} else {
Wut = (wait/100)-num;
Document.forms.register.Submit.value = "Please read first (" + Wut + ") before agreeing;
}
}
function Timer () {
Document.forms.register.Submit.disabled =false;
}
</SCRIPT>