topical media & game development

talk show tell print

#javascript-code-05-scroll.js / js



  // We're going to see if we should load some more content based upon where
  // the user is currently located on the page
  window.onscroll = function(){
      // Check the position of the viewport within the page
      if ( curPage >= 1 && !loading && pageHeight() - scrollY() - windowHeight() < windowHeight() ) {
          // Request the RSS XML feed using an AJAX request
      }
  };
  
  


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