復制代碼 代碼如下:
<!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>