topical media & game development

talk show tell print

#javascript-css-loader-script.js / js



  document.write('<div id="loading"><br><br>Please wait...</div>');
  
  // Created by: Simon Willison | http://simon.incutio.com/
  function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
      window.onload = func;
    } else {
      window.onload = function() {
        if (oldonload) {
          oldonload();
        }
        func();
      }
    }
  }
  
  addLoadEvent(function() {
    document.getElementById("loading").style.display="none";
  });
  
  


(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.