首页 源码下载JS网页代码正文

网站论坛注册中我同意等待倒记时网页代码

零零资源网 JS网页代码 2015-10-03 17:25:00 431 0
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>同意条款https://www.kubbs.cn</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<input type="submit" name="Submit" value="同意" />
</form>
<script language="javascript">
document.form1.Submit.disabled = true;
var speed = 1000; //速度
var wait = 10; //停留时间
function updateinfo(){
if(wait == 0){
document.form1.Submit.value = "我同意";
document.form1.Submit.disabled = false;
}
else{
document.form1.Submit.value = "阅读条款"+wait;
wait--;
window.setTimeout("updateinfo()",speed);
}
}
updateinfo();
</script>
</body>
</html>