中文(繁体)
<!-- 把以下程式碼加入<head>區域中--> <script language="JavaScript"> <!-- //更多來自http://www.downcodes.com 的javascript var DifferenceHour = -1 var DifferenceMinute = -1 var DifferenceSecond = -1 var Tday = new Date("2006 年1 月1 日23:59:59") var daysms = 24 * 60 * 60 * 1000 var hoursms = 60 * 60 100 Secondms = 60 * 60 100 60 * 1000 var微秒= 1000 function Clock() { var time = new Date() var hour = time.getHours() var 分鐘= time.getMinutes() var Second = time.getSeconds() var time.getMinutes() var Second = time.getSeconds() var timevalue = ""+ ((hour > 12 ) ? Hour-12:hour) 時間值+=((分鐘< 10) ? ":0":":")+分鐘時間值+=((秒< 10) ? ":0" :":")+秒timevalue +=((hour >12 ) ? " PM":" AM") // document.formnow.now.value = 時間值var ConvertHour = DifferenceHour var ConvertMinute = DifferenceMinute var ConvertSecond = DifferenceHour var ConvertMinute = DifferenceMinute var ConvertSecond = DifferenceSecond Diffms = Tday.getTime() - time.getTime() DifferenceHour = Math.floor(Diffms / daysms) Diffms -= DifferenceHour * daysms DifferenceMinute = Math.floor(Diffms / hoursms) Diffms DifferenceMinute = Math.floor(Diffms / hoursms) Diffms -DifferenceM.M. (Diffms / Secondms) Diffms -= DifferenceSecond * Secondms var dSecs = Math.floor(Diffms / 微秒) if(convertHour != DifferenceHour) document.formnow.dd.value=DifferenceHour if(convertMinute. hh.value=DifferenceMinute if(convertSecond ! = DifferenceSecond) document.formnow.mm.value=DifferenceSecond document.formnow.ss.value=dSecs // document.formnow.Tnow.value= DifferenceHour DiffenceMenceS. ()",1000) } // end hide --> </script> <!-- 修改<body>內容--> <body onload="clock();return true"> <!-- 把如下程式碼加入<body>區域中--> <form name="formnow"> 尚剩<input type="text" name="dd" size=2> 天<input type="text" name="hh" size= 2> 小時<input type="text " name="mm" size=2> 分<input type="text" name="ss" size=2> 秒就到2006年1月1日23:59:59啦!月四月<br/> 五月五月<br/ > 六月六月<br/> 七月八月<br/> 八月八月<br/> 九月九月<br/> 十月十月<br/> 十一月<br/> 十二月