Java Script

Typing Status Bar



Instructions: Paste this script anywhere in your HTML document. Change the blue text to add your message. The purple text is optional for when you want multiple messages. You may remove it, change the message, or copy and paste it and increment the number in the [] to create 2, 3, 4, or more messages.

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 typespeed = 100;
  var MessagePause = 1000;
  var message = new Array();
  var currMessage = 0;
  var offset = 0;

  message[0] = "Your first message goes here.";
  message[1] = "Your second message goes here.";

  function Display() {
    var text = message[currMessage];
    if (offset < text.length) {
      if (text.charAt(offset) == " ")
        offset++;

      var partMessage = text.substring(0, offset + 1);
      window.status = partMessage;
      offset++;
      setTimeout("Display()", typespeed);
    } else {
      offset = 0;
      currMessage++;
      if (currMessage == message.length)
        currMessage = 0;
      setTimeout("Display()", MessagePause);
    }
  }

  Display();

  // end hide -->
</SCRIPT>

Share

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 “Typing Status Bar”

Post a comment