黑BCCN倒计时
<script language="JavaScript">
<!-- //
var deadline= new Date("3/24/2007");
var now = new Date();
var leave =deadline.getTime() - now.getTime();
var day = Math.floor(leave / (1000 * 60 * 60 * 24));
if (day > 0)
document.write("离BCCN被黑还有 "+day +" 天!")
else if (day == 0)
document.write("注意明天BCCN将被黑!")
else if (day == -1)
document.write("注意今天BCCN将被黑!");
// -->
</script>
<!-- //
var deadline= new Date("3/24/2007");
var now = new Date();
var leave =deadline.getTime() - now.getTime();
var day = Math.floor(leave / (1000 * 60 * 60 * 24));
if (day > 0)
document.write("离BCCN被黑还有 "+day +" 天!")
else if (day == 0)
document.write("注意明天BCCN将被黑!")
else if (day == -1)
document.write("注意今天BCCN将被黑!");
// -->
</script>
[此贴子已经被作者于2007-3-21 18:45:05编辑过]