如何在dreamweaver中编写一个奥运开幕倒计时页面?

来源:百度知道 编辑:UC知道 时间:2024/06/01 03:10:01
如何在dreamweaver中编写一个奥运开幕倒计时页面?

请将步骤、代码详细写出来,本人是学了dreamweaver不久的,所以很多地方还不清楚!

如果答案正确的,本人追加积分,谢了!

<Script Language="JavaScript">
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("<font style='font-size:13px;line-height:18px;color:#000000'>离2008"+times+"开幕还有:</font><font style='color:#F5A100;line-height:32px;font-family:Verdana;font-size:24px;'><b>"+time +"</b></font><font style='font-size:12px;line-height:18px;color:#000000'>天</font> ");
</Script>
离奥运开幕还有:
<Script Language="JavaScript">
var enabled = 0;today = new Date();
var day;var date;
var timedate= new Date("August 9,2008");
var times="";
var now = new Date();
var date =