<script type="text/javascript"> $(function() { countDown(); }); function countDown() { var target = new Date("August 26,2010 11:00:00"); var today = new Date(); var h = Math.floor(((target-today)%(24*60*60*1000))/(60*60*1000)) var m = Math.floor(((target-today)%(24*60*60*1000))/(60*1000))%60 var s = Math.floor(((target-today)%(24*60*60*1000))/1000)%60%60 $("#TimeLeft").text(h+'時間'+m+'分'+s+'秒'); se