Posted in Javascript onJune 24, 2013
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> 注册 </TITLE> <META NAME="Email" CONTENT="12345678@qq.com"> <META NAME="Author" CONTENT="MXi4oyu"> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> <script type="text/javascript"> var s=4; function countsub() { var btnReg=document.getElementById("btnReg"); if(btnReg) { if(s<=0) { btnReg.value="同意"; btnReg.disabled=false; clearInterval(id); } else { btnReg.value="请仔细阅读协议(还剩"+s+"秒)"; s--; } } } var id = setInterval('countsub()',1000) </script> </HEAD> <BODY> <textarea>注册协议</textarea> <input id="btnReg" type="button" value="同意" disabled="true" /> </BODY> </HTML>
Js注册协议倒计时的小例子
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@