<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <ti…
//发送验证码倒计时 var clock = ''; var nums = 60; var btn; $("#btnGetVerCode").click(function () { var flag = true; var phoneNum = $("#txtPhoneNum").val(); if (phoneNum.length == 11 && /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(14[0-9…
<div>距离下一个元旦还有多久:</div> <div id="timer"></div> <script type="text/javascript"> function nextTime(){ var now = new Date(); //距离下一个元旦还有多久 var end = new Date(now.getFullYear() + 1,0,1); //两个时间差 var time = end…
<!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> <title> new document </ti…
<script type="text/javascript"> var intDiff = parseInt(15); //倒计时总秒数量 function timer(intDiff) { index = window.setInterval(function () { var day = 0, hour = 0, minute = 0, second = 0; //时…