topical media & game development

talk show tell print

graphic-javascript-effect-status-bounce-effect.htm / htm



  
  <!-- TWO STEPS TO INSTALL STATUSBAR BOUNCE:
  
    1.  Copy the coding into the HEAD of your HTML document
    2.  Add the onLoad event handler into the BODY tag  -->
  
  <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
  
  <HEAD>
  
  <!-- This script and many more are available free online at -->
  <!-- The JavaScript Source!! http://javascript.internet.com -->
  <!-- Original:  Umair Anwer (umairanwer92@hotmail.com) -->
  <!-- Web Site:  http://www.umairanwer.tk -->
  <SCRIPT language=JavaScript>
  
  //Put Your Message between the asteriks * * don't remove them//
  var yourwords = "* Free Java Scripts from the Source! *";
  var buffer1="                        ";
  var buffer2="                        ";
  var message1=buffer1+yourwords+buffer2;
  var dir = "left";
  var speed = 75;
  function pingpong()
  
  {
  
  if (dir == "left")
  
    {
  
      message2=message1.substring(2,message1.length)+"  ";
      window.status=message2;
      setTimeout("pingpong();",speed);
      message1=message2;
      if (message1.substring(0,1) == "*") dir="right";
  
    }
  
  else
  
    {
  
      message2="  "+message1.substring(0,message1.length-2);
      window.status=message2;
      setTimeout("pingpong();",speed);
      message1=message2;
      if (message1.substring(message1.length-1,message1.length) == "*") dir="left";
  
    }
  
  }
  </SCRIPT>
  
  <!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->
  
  <BODY onLoad="pingpong()">
  
  <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:  1.51 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.