Java Script

Bouncing Status Bar Message



Instructions: Paste this script anywhere in your HTML document. Change the blue text to add your message.

Tested On: IE 6, Mozilla 1.3

<SCRIPT LANGUAGE="JavaScript">
  <!-- Hide this from older browsers
  // This script was written by Protoplasm
  // http://www.geocities.com/protoplasm72  var message = "This is the line you edit";
  var speed = 100;
  var forward = true;

  function bounce(){
    if (forward) {
      message = " " + message;
      forward = ((message.length > 120) ? false : true);
    } else {
      if (message.charAt(0) == ' ') {
        message = message.substring(1, message.length);
      } else {
        forward = true;
      }
    }
    window.status = message;
    setTimeout("bounce()", speed);
  }

  bounce();

  // end hide -->
</SCRIPT>

Related Posts with Thumbnails

No related posts.

Thanks for reading my blog. If you like what I write, why not subscribe to my feed?

If you are busy, I can send the latest post to your email. Just subscribe to my email updates.

 

Enter your email address:

Delivered by FeedBurner

Discussion

No comments for “Bouncing Status Bar Message”

Post a comment