Status PingPongs

[Total: 0    Average: 0/5]

This puts your message into a ping pong like state.

Body Code:

<script language="JavaScript">
<!--
var yourwords = "Type your text here ...";
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>
<SCRIPT LANGUAGE="JavaScript">
<!--
pingpong();
//-->
</SCRIPT>

<big>See at window.status</big>

Times Viewed: 1

Leave a Reply

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