简易的计时器实例,可以模拟注册协议倒计时同意
来源:互联网 发布:日照城市知乎 编辑:程序博客网 时间:2024/04/29 01:24
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
var a=3;
var jishi=function()
{
document.getElementById("agr").value = a+"秒后可以同意";
a--;
if(a ==0) {
clearTimeout(null);
document.getElementById("agr").style.color="red";
document.getElementById("agr").disabled=false;
document.getElementById("agr").value = "同意";
a=3;
}else{
setTimeout(jishi,1000);
}
}
function tongyi(){
alert("同意");
}
</script>
</head>
<body onload="jishi()">
<input type="button" id="agr" disabled="disabled" onclick="tongyi()" value="同意"/>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
var a=3;
var jishi=function()
{
document.getElementById("agr").value = a+"秒后可以同意";
a--;
if(a ==0) {
clearTimeout(null);
document.getElementById("agr").style.color="red";
document.getElementById("agr").disabled=false;
document.getElementById("agr").value = "同意";
a=3;
}else{
setTimeout(jishi,1000);
}
}
function tongyi(){
alert("同意");
}
</script>
</head>
<body onload="jishi()">
<input type="button" id="agr" disabled="disabled" onclick="tongyi()" value="同意"/>
</body>
</html>
0 0
- 简易的计时器实例,可以模拟注册协议倒计时同意
- 协议同意倒计时按钮
- 注册会员的同意按钮
- 注册页面时倒计时多少秒以后同意按钮可用
- timer的使用--倒计时--计时器
- javascript实现的倒计时计时器
- 一个简单的倒计时计时器
- 计时器---倒计时功能的实现
- JavaScript编写的计时器/倒计时也可以改一下参数(用到的图片已经上传)
- JavaScript编写的计时器/倒计时也可以改一下参数(用到的图片已经上传)
- 一个简单的注册同意功能
- Android深入浅出系列之实例应用—同意协议CheckBox的使用
- Android深入浅出系列之实例应用—同意协议CheckBox的使用
- 如何实现注册时必须同意使用协议
- /**倒计时计时器**/
- 倒计时计时器
- 倒计时 计时器
- 倒计时计时器
- 复制与粘贴
- C++第三周作业
- 20.Huffuman树
- centos6.4 64位下安装BCM43225无线网卡驱动
- 2014.3.20博客记录
- 简易的计时器实例,可以模拟注册协议倒计时同意
- Android API Guides 之 Introduction(2) - Device Compatibility
- crud操作
- 使用OCCI连接Linux下Oracle数据库
- 21.高精度加法
- cart
- 对C#中Thread.IsBackground属性的理解
- RSA算法原理(一)
- 文件读写,归档,反归档