中秋节 倒计时ASP代码
<%@LANGUAGE=“VBSCRIPT“ CODEPAGE=“65001“%><%response.buffer=true%>
<%Response.ContentType = “text/vnd.wap.wml; charset=utf-8“%>
<?xml version=“1.0“ encoding=“utf-8“?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN“ “http://www.wapforum.net/DTD/wml_1.1.xml“>
<wml>
<head>
<meta http-equiv=“Cache-Control“ content=“max-age=0“/>
<meta http-equiv=“Cache-Control“ content=“no-cache“/>
<meta http-equiv=“Expires“ content=“Mon, 1 Jan 1990 00:00:00 GMT“/>
</head>
<card title=“中秋节倒计时“>
<p>
<%
dim countdowndate,thedate,daysleft,hoursleft,minutesleft,secondsleft,toverday,starttime
overday=0
starttime=“2010-9-22 00:00:00“
t=DateAdd(“d“,overday,starttime)
CountdownDate =t
theDate = now()
aa = DateDiff(“s“,theDate,CountdownDate)
daysleft=int(aa/60/60/24)
hoursleft=int((aa-daysleft*60*60*24)/60/60)
minutesleft=int((aa-daysleft*60*60*24-hoursleft*60*60)/60)
secondsleft=int(aa-daysleft*60*60*24-hoursleft*60*60-minutesleft*60)
%>
中秋节倒计时还有:<%= DaysLeft%>天<%= HoursLeft %>小时<%= MinutesLeft %>分<%=secondsleft%>秒
</p></card></wml>
发表评论