急急急!!!ASP倒计时代码 在线等
急急急!!asp倒计时代码做一个北京2008的倒计时{不是即时走,刷新一下变一下,}正在考试急求在线等…10分钟木有的话就关闭了哎精确到分...
急急急!!asp倒计时 代码 做一个北京2008的倒计时{不是即时走,刷新一下变一下,} 正在考试 急求 在线等…
10分钟木有的话就关闭了哎 精确到分 展开
10分钟木有的话就关闭了哎 精确到分 展开
2个回答
展开全部
<html>
<head>
<title>奥运会倒计时</title>
<script language="vbscript">
Dim NowHour
Dim NowDay
Dim NowSecond
Dim NowMinutes
Function Page_Load()
Window.setTimeout "Page_Load()",10
NowDay=DateDiff("d",Now,"2008-8-8 00:00:00")
NowHour=DateDiff("h",Now,"2008-8-8 00:00:00")
NowMinutes=DateDiff("n",Now,"2008-8-8 00:00:00")
NowSecond=DateDiff("s",Now,"2008-8-8 00:00:00")
document.all("ShowInfo").innerHTML="距离奥运会开幕还有"&NowDay&"天"&NowHour&"小时"&NowMinutes&"分钟"&NowSecond&"秒"
End Function
</script>
</head>
<body onload="Page_Load()">
<div id="ShowInfo"></div>
</body>
</html>
<head>
<title>奥运会倒计时</title>
<script language="vbscript">
Dim NowHour
Dim NowDay
Dim NowSecond
Dim NowMinutes
Function Page_Load()
Window.setTimeout "Page_Load()",10
NowDay=DateDiff("d",Now,"2008-8-8 00:00:00")
NowHour=DateDiff("h",Now,"2008-8-8 00:00:00")
NowMinutes=DateDiff("n",Now,"2008-8-8 00:00:00")
NowSecond=DateDiff("s",Now,"2008-8-8 00:00:00")
document.all("ShowInfo").innerHTML="距离奥运会开幕还有"&NowDay&"天"&NowHour&"小时"&NowMinutes&"分钟"&NowSecond&"秒"
End Function
</script>
</head>
<body onload="Page_Load()">
<div id="ShowInfo"></div>
</body>
</html>
展开全部
<span id="span_dt_dt"></span>
<SCRIPT language=javascript>
function show_student163_time(){
window.setTimeout("show_student163_time()", 1000);
BirthDay=new Date("12-12-2007 15:46");
today=new Date();
timeold=(BirthDay.getTime()-today.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=Math.floor(e_hrsold);
e_minsold=(e_hrsold-hrsold)*60;
minsold=Math.floor((e_hrsold-hrsold)*60);
seconds=Math.floor((e_minsold-minsold)*60);
if(daysold<0)
{
daysold=0;
hrsold=0;
minsold=0;
seconds=0;
}
span_dt_dt.innerHTML=daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"秒" ;
}
show_student163_time();
</SCRIPT>
<SCRIPT language=javascript>
function show_student163_time(){
window.setTimeout("show_student163_time()", 1000);
BirthDay=new Date("12-12-2007 15:46");
today=new Date();
timeold=(BirthDay.getTime()-today.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=Math.floor(e_hrsold);
e_minsold=(e_hrsold-hrsold)*60;
minsold=Math.floor((e_hrsold-hrsold)*60);
seconds=Math.floor((e_minsold-minsold)*60);
if(daysold<0)
{
daysold=0;
hrsold=0;
minsold=0;
seconds=0;
}
span_dt_dt.innerHTML=daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"秒" ;
}
show_student163_time();
</SCRIPT>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询