|
龙凤大当家
    
专业打杂
|
1楼
大 中
小 发表于 2007-10-31 14:47 只看该作者
网站论坛加入2008奥运倒计时代码
加入方法:后台--论坛简介 引用:<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>
|