2010元旦倒计时

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0062)http://www.25175.com/200609/25175/25175_html/2007-04/1607.html -->
<HTML lang=gb2312 xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>2010元旦倒计时js插件</TITLE><!-----------------------------------
 Powered by iwms
 http://www.iwms.net/
----------------------------------->
<META http-equiv=content-type content=text/html;charset=gb2312>
<META http-equiv=Content-Language content=zh-CN>

 

<META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD>
<BODY><script>document.writeln("<!--done-->");
document.writeln("<div class=/"newsItem/">");
document.writeln(" <b><align=center><font color=red size=4>2010元旦倒计时<//b><//font> ");
document.writeln("");
document.writeln("<span id=/"span_dt_dt/" style=/'align=center no:1px solid black;background-color:#FFFFFF/' ><//span> ");
document.writeln("");
document.writeln("<SCRIPT language=javascript> ");
document.writeln("<!-- ");
document.writeln("document.write(/"/"); ");
document.writeln("");
document.writeln("function show_date_time(){ ");
document.writeln("window.setTimeout(/"show_date_time()/", 1000); ");
document.writeln("BirthDay=new Date(/"1-1-2010/");这个日期是可以修改的 ");
document.writeln("today=new Date(); ");
document.writeln("timeold=(BirthDay.getTime()-today.getTime()); ");
document.writeln("sectimeold=timeold//1000 ");
document.writeln("secondsold=Math.floor(sectimeold); ");
document.writeln("msPerDay=24*60*60*1000 ");
document.writeln("e_daysold=timeold//msPerDay ");
document.writeln("daysold=Math.floor(e_daysold); ");
document.writeln("e_hrsold=(e_daysold-daysold)*24; ");
document.writeln("hrsold=Math.floor(e_hrsold); ");
document.writeln("e_minsold=(e_hrsold-hrsold)*60; ");
document.writeln("minsold=Math.floor((e_hrsold-hrsold)*60); ");
document.writeln("seconds=Math.floor((e_minsold-minsold)*60); ");
document.writeln("span_dt_dt.innerHTML=/"<b><align=center><font color=00CC00 size=4>/"+daysold+/"天/"+hrsold+/"小时/"+minsold+/"分/"+seconds+/"秒/"+/"<//b><br><//font>/" ; ");
document.writeln("");
document.writeln("} ");
document.writeln("");
document.writeln("show_date_time(); ");
document.writeln("");
document.writeln("--> ");
document.writeln("<//SCRIPT>");
</script>
</BODY></HTML>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值