topical media & game development

talk show tell print

professional-sql-01-public-files-js-401.js / js



  window.seconds = 10; 
  window.onload = function()
  {
      if (window.seconds != 0)
      {
          document.getElementById('secondsDisplay').innerHTML = '' +
              window.seconds + ' second' + ((window.seconds > 1) ? 's' : ''); 
          window.seconds--;
          setTimeout(window.onload, 1000);
      }
      else
      {
          window.location = 'login.php';
      }
  }
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.