<!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>
详细解决方案
一分钟记时(短信发送)
热度:337 发布时间:2013-07-08 14:13:00.0
相关解决方案