可以放在网页任何位置的日历特效代码

王朝html/css/js·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

在会员注册时很多网站都有一份协议或条款提供给用户阅读,又为了避免部分用户不阅读而直接点击"我同意"按钮跳过,通常的方法便是在一段时间内使按钮失效,实现方法如下:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>同意条款</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>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航