Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<html>
<head>
<title>定时激活的按钮</title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
</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>
CSS代码...
JS代码...
xxxxxxxxxx