<script type="text/javascript">
    <!--
    var duration=2900;
    var endTime = new Date().getTime() + duration + 100;
    function interval()
    {
        var n=(endTime-new Date().getTime())/1000;
        if(n<0) return;
        document.getElementById("timeout").innerHTML = n.toFixed(3);
        setTimeout(interval, 10);
    }
    window.onload=function()
    {
        setTimeout("window.location.href='http://blog.never-online.net'", duration);
        interval();
    }
    //-->
    </script>
    <div id="timeout"></div>

解决方案 »

  1.   

    好象不能够啊!
    getDate        Returns the day of the month for the specified date. 
    getDay         Returns the day of the week for the specified date. 
    getHours       Returns the hour in the specified date. 
    getMinutes     Returns the minutes in the specified date. 
    getMonth       Returns the month in the specified date. 
    getSeconds     Returns the seconds in the specified date. 
    getTime        Returns the numeric value corresponding to the time for the specified date. 
    getTimezoneOffset   Returns the time-zone offset in minutes for the current locale. 
    getYear Returns the year in the specified date. 
      

  2.   

    或者别的方法 不一定要javascript
    只要能在客户端获取 精确的时间就行 别的脚本也行
    调用webservice也行
    给点思路
      

  3.   

    <script type="text/javascript">
    //<![CDATA[
    var a=new Date();
    var y = a.getYear()+"-";
    var m = a.getMonth()+"-";
    var d = a.getDay()+"-";
    var h = a.getHours()+"-";
    var x = a.getMinutes()+"-";
    var s = a.getSeconds()+"-";
    var ms=a.getMilliseconds()+"-";
    document.write(y + m + d + h + x + s + ms);
    //]]>
    </script
      

  4.   

    http://blog.never-online.net/article.asp?id=21