1.  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  2.  
  3.     <script type="text/javascript"> 
  4.     <!-- 
  5.     var duration=9900
  6.     var endTime = new Date().getTime() + duration + 100; 
  7.     function interval() 
  8.     { 
  9.         var n=(endTime-new Date().getTime())/1000; 
  10.         if(n<0) return; 
  11.         document.getElementById("timeout").innerHTML = n.toFixed(3); 
  12.         setTimeout(interval, 10); 
  13.     } 
  14.     window.onload=function() 
  15.     { 
  16.         setTimeout("window.location.href='http://www.baidu.com/'", duration); 
  17.         interval(); 
  18.     } 
  19.     //--> 
  20.     </script> 
  21. <html xmlns="http://www.w3.org/1999/xhtml"> 
  22. <head runat="server"> 
  23.     <title>等待10秒</title> 
  24. </head> 
  25. <body> 
  26.     <form id="form1" runat="server"> 
  27.         <div> 
  28.           站定已升级请访问新站<span id="timeout">10.000</span> 秒后 将自动跳转到新站首页</div> 
  29.     </form> 
  30. </body> 
  31. </html>