Bouncing Status Bar Text

[Total: 0    Average: 0/5]

This script will run Bouncing Status Bar Text.

Init Code:

pingpong();

Body Code:

<script language="JavaScript">
<!-- 
var yourwords = "*  Bouncing Status Bar Text JavaScripts *";
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>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *