时间: 2021-07-31 作者:daque
<!doctype html public "-//w3c//dtd xhtml1.0 transitional //en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd" ><html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312"><meta http-equiv="content-type" content="text/html;charset=utf8" /><head> <title>no.Javascript倒计时演示</title></head><!-- 常常看到备案会员时,接收和议所用到的功效 --><body><textarea name="content" readonly>fsdf</textarea><input type="button" id="agree" value="请刻意察看<效劳条件和证明> (10)" onclick="location.href='xxxx.asp'"></body></html><script type="text/javascript"> var settime=10; var i; var showthis; document.all.agree.disabled=true; for(i=1;i<=settime;i++) { settimeout("update("+i+")",i*1000); } function update(num) { if(num==settime) { document.all.agree.value="我承诺"; document.all.agree.disabled=false; } else { showthis=settime-num; document.all.agree.value="请刻意察看<效劳条件和证明> ("+showthis+")"; } }</script>