XML/HTML代码
  1.     
  2. <script type="text/javascript">    
  3. function countDown(secs,surl){    
  4. //alert(surl);    
  5. jumpTo.innerText=secs;    
  6. if(--secs>0){    
  7.       setTimeout("countDown("+secs+",'"+surl+"')",1000);    
  8.       }    
  9. else{      
  10.      location.href=surl;    
  11.       }    
  12. }    
  13. script>    
  14.      
  15.     
  16. <br>    
  17.     
  18. <span id="jumpTo">5span>秒后自动跳转到PHPINFO页面    
  19. <script type="text/javascript">countDown(5,'phpinfo.php');script>