霸气网游公会

 找回密码
 加入霸气
查看: 356|回复: 1

倒计时程序

[复制链接]
发表于 2010-6-28 21:00:24 | |阅读模式

欢迎加入霸气网游公会社区,马上注册,享用更多功能。

您需要 登录 才可以下载或查看,没有账号?加入霸气

x
<P><BR><STRONG><FONT color=red><FONT color=blue>距离今天晚上22点20分换购QB活动还有</FONT> <SPAN id=span_dt_dt style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: #ffffff"></SPAN>
<SCRIPT language=javascript>
<!--
//document.write("");

function show_student163_time(){
window.setTimeout("show_student163_time()", 1000);
BirthDay=new Date("Jun 28, 2010 22:20:00");//改成你的计时日期
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);
span_dt_dt.innerHTML=daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"秒" ;

}
show_student163_time();
//-->
</SCRIPT>
</FONT></STRONG><A href="http://bbs.871314.com/forum-785-1.html"><STRONG><FONT color=red>点击直达活动区</FONT></STRONG></A></P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>
  1. </P>
  2. <P>&lt;BR&gt;&lt;STRONG&gt;&lt;FONT color=red&gt;&lt;FONT color=blue&gt;距离今天晚上22点20分换购QB活动还有&lt;/FONT&gt; &lt;SPAN id=span_dt_dt style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: #ffffff"&gt;&lt;/SPAN&gt;<BR>&lt;SCRIPT language=javascript&gt;<BR>&lt;!--<BR>//document.write("");</P>
  3. <P>function show_student163_time(){<BR>&nbsp;window.setTimeout("show_student163_time()", 1000);<BR>&nbsp;BirthDay=new Date("Jun 28, 2010 22:20:00");//改成你的计时日期<BR>&nbsp;today=new Date();<BR>&nbsp;timeold=(BirthDay.getTime()-today.getTime());<BR>&nbsp;sectimeold=timeold/1000<BR>&nbsp;secondsold=Math.floor(sectimeold);<BR>&nbsp;msPerDay=24*60*60*1000<BR>&nbsp;e_daysold=timeold/msPerDay<BR>&nbsp;daysold=Math.floor(e_daysold);<BR>&nbsp;e_hrsold=(e_daysold-daysold)*24;<BR>&nbsp;hrsold=Math.floor(e_hrsold);<BR>&nbsp;e_minsold=(e_hrsold-hrsold)*60;<BR>&nbsp;minsold=Math.floor((e_hrsold-hrsold)*60);<BR>&nbsp;seconds=Math.floor((e_minsold-minsold)*60);<BR>&nbsp;span_dt_dt.innerHTML=daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"秒" ;<BR>&nbsp;<BR>}<BR>show_student163_time();<BR>//--&gt;<BR>&lt;/SCRIPT&gt;<BR>&lt;/FONT&gt;&lt;/STRONG&gt;&lt;A href="<A href='http://bbs.871314.com/forum-785-1.html"><STRONG><FONT'>http://bbs.871314.com/forum-785-1.html"&gt;&lt;STRONG&gt;&lt;FONT</A> color=red&gt;点击直达活动区&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/A&gt;</P>
  4. <P>
复制代码
</P>
发表于 2010-6-28 21:30:54 |
额、、、、、、还要等差不多个把小时!

Archiver|手机版|小黑屋|霸气网游公会 ( 蜀ICP备18016790号-3 )

GMT+8, 2024-12-22 13:19 , Processed in 0.069778 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表