<script language="JavaScript"> <!-- // (c) Henryk Gajewski var urodz= new Date("09/19/2013"); 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("好象已经过了哦!"); // -->