<Script Language=JavaScript> var timedate= new Date(October ); var times= 年國慶節; var now = new Date(); var date = timedategetTime() nowgetTime(); var time = Mathfloor(date / ( * * * )); if (time >= ) documentwrite( 現在離+times+還有: +time +天) </Script>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19426.html