JS倒计时代码(倒計還有多少天)
JS倒计时代码(倒計還有多少天)
<SCRIPT LANGUAGE="JavaScript">
<!--
var urodz= new Date("AUG 8,2008");
var s="奥运开幕";
var now = new Date();
var ile = urodz.getTime() - now.getTime();
var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
if (dni > 1) document.write("离"+s+"还有"+dni +"天")
else if (dni == 1) document.write("只有2天啦!")
else if (dni == 0) document.write("只有1天啦!")
else document.write(s+"好象已经过了哦!");
-->
</SCRIPT>
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)