<html>
<head>
<title>同意条款</title>
</head>
<body>
<form id="myform" name="myform" method="post" action="">
<input type="submit" name="Submit" value="同意" />
</form>
<script language="javascript">
document.myform.Submit.disabled = true;
var wait = 9; //停留时间
function updateinfo(){
if(wait == 0){
document.myform.Submit.value = "我同意";
document.myform.Submit.disabled = false;
}
else{
document.myform.Submit.value = "阅读条款"+wait;
wait--;
window.setTimeout("updateinfo()",1000);
}
}
updateinfo();
</script>
</body>
</html>
JAVASCRIPT之灰色按钮
最新推荐文章于 2024-10-06 12:17:25 发布