<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> 一分钟倒计时(短信发送) </title>
<meta name="Generator" content="EditPlus">
</head>
<body>
<script type="text/javascript">
<!--
function sendMobileCode(){
send();
}
var i = 6;
function send(){
i--;
if (i == -1) {
document.getElementById("sendMobileCode").disabled = "";
i = 6;
document.getElementById("mobileCodeMsg").innerHTML = "";
return null;
}
document.getElementById("sendMobileCode").disabled = "disabled";
document.getElementById("mobileCodeMsg").innerHTML = "发送成功, (" + i + "秒后)可重新发送验证码";
setTimeout("send();", 1000);
}
//-->
</script>
手机号码:<input type="text" name="mobile" /><br />
验证码:<input type="text" name="mobileCode" /><br />
<input type="button" onclick="sendMobileCode()" value="发送" id="sendMobileCode"/><span id="mobileCodeMsg"></span>
</body>
</html>
一分钟倒计时(短信发送)
最新推荐文章于 2024-04-19 22:31:37 发布