js 复制代码 代码如下: <br><!-- <BR>var wait_time = 8; //设置秒数(单位秒) <BR>var secs_time = 0; <BR>for(var i=1;i<=wait_time;i ) <BR>{ <BR> window.setTimeout("sTimer(" i ")",i*1000); <BR>} <BR>function sTimer(num) <BR>{ <BR> if(num==wait_time) <BR> { <BR> document.getElementById("reg_btn").value=" 同意注册 "; <BR> document.getElementById("reg_btn").disabled=false; <BR> } <BR> else <BR> { <BR> secs_time=wait_time-num; <BR> document.getElementById("reg_btn").value="请先阅读服务条款 (" secs_time ")"; <BR> } <BR>} <BR>//--> <br> html 复制代码 代码如下: