广 告 位 置 |
|
|
 |
站 内 搜 索 |
|
|
 |
|
|
|
|
北京奥运会倒计时代码
来源:盛绿设计 等级:默认等级
发布于2006-09-22 08:28 被读392次 【字体:大 中 小】
|
|
<div class="smallfont" align="center"><Script Language="JavaScript"> var enabled = 0; today = new Date(); var day; var date; var timedate= new Date("August 8,2008"); var times="北京奥运会"; var now = new Date(); var date = timedate.getTime() - now.getTime(); var time = Math.floor(date / (1000 * 60 * 60 * 24)); if (time >= 0) ; document.write("离2008"+" <font color=red>"+times+"</font> 开幕还有:<font style='color:#ff0000;line-height:32px;font-family:Verdana;font-size:12px;'>"+time +"</font>天</br>"); if(today.getDay()==0) day = "星期日" if(today.getDay()==1) day = "星期一" if(today.getDay()==2) day = "星期二" if(today.getDay()==3) day = "星期三" if(today.getDay()==4) day = "星期四" if(today.getDay()==5) day = "星期五" if(today.getDay()==6) day = "星期六" date = "<font color=red>"+(today.getYear())+"</font> 年" + "<font color=red>"+(today.getMonth() + 1 ) + "</font> 月" + "<font color=red>"+today.getDate() + "</font> 日 " + " <font color=red>"+ day +"</font>"; document.write(date); </Script></div> |
相关专题:暂无相关专题
上一篇:用FrontPage2000作网页--动态网页 下一篇:网页设计技巧谈:走出路径的困惑
|
共有评论 0 条 网友评分 查看全部
|
|
|