<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> 注册</title>
</head>
<body>
<textarea>注册协议</textarea>
<input type="button" value="yes" disabled="disabled" id ="btnRag"/>
</body>
</html>
<script type="text/javascript">
var leftSeconds = 5;
var intervalID;
function Count() {
var btnRag = document.getElementById("btnRag");
if (!btnRag) {
return;
}
if (leftSeconds <= 0) {
btnRag.value = "yes";
btnRag.disabled = "";
clearInterval(intervalID);
}
else {
btnRag.value = "yes" + leftSeconds;
leftSeconds--;
}
}
intervalID = setInterval("Count()", 1000);
</script>
协议同意倒计时按钮
最新推荐文章于 2021-09-12 22:07:02 发布