topical media & game development

talk show tell print

graphic-javascript-effect-background-scroll-effect.htm / htm



  NE STEP TO INSTALL BG SCROLLER:
  
    1.  Copy the coding into the BODY of your HTML document  -->
  
  <!-- STEP ONE: Paste this code into the BODY of your HTML document  -->
  
  <BODY>
  
  <body background="soutine.jpg">
  
  <!-- Original:  Roy Sinclair (roysinclair@email.msn.com) -->
  
  <!-- This script and many more are available free online at -->
  <!-- The JavaScript Source!! http://javascript.internet.com -->
  
  <script language="JavaScript">
  <!-- Begin
  var backgroundOffset = 0;
  var bgObject = eval('document.body');
  function scrollBG(maxSize) {
  backgroundOffset = backgroundOffset + 1;
  if (backgroundOffset > maxSize) backgroundOffset = 0;
  bgObject.style.backgroundPosition = "0 " + backgroundOffset;
  }
  var ScrollTimer = window.setInterval("scrollBG(307)", 64);
  // End -->
  </script>
  
  <p><center>
  <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
  by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
  </center><p>
  
  <!-- Script Size:  0.72 KB -->
  
  


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