No76
µî·ÏÀÏ2002/2/20(¼ö)
[¼Ò½º] D-day ¼Ò½º  
D-day ¼Ò½º..!!

<script>

function memorial()

{
var memory1 = "X-Mas"; //¿©±â¿¡ ±â³äÀÏÀÇ À̸§À» ¾´´Ù.
var memory1_day = new Date("Dec 25, 2000 00:00:00"); //¿©±â¿¡ ±â³äÀÏÀÇ ³¯Â¥¿Í ½Ã°£À» ±âÀÔÇÑ´Ù.
var today = new Date();

with(Math){
var t = (memory1_day.getTime() - today.getTime())/(24 * 60 * 60 * 1000);
var day1 = ceil(t);
var msg = (day1 > 0) ? memory1 + ": D-" + day1:
(day1 == 0) ? "¿À´ÃÀº "+ memory1 +"ÀÔ´Ï´Ù. ": memory1 +"(·ÎºÎÅÍ " + abs(day1) + "ÀÏ°ÀÔ´Ï´Ù.) ";
}
document.write(msg);
}

memorial();

</script>

                        ÀÌÀü±Û ´ÙÀ½±Û         â´Ý±â