Site hosted by Angelfire.com: Build your free website today!




A bouncing status bar scroller; look in your current status bar on the bottom of your browser. A nice little welcoming message for your site.
Alter the Message to suit your needs.

Here's the Script

<HEAD>
<TITLE>Titlebar Bounce</TITLE>
<script language="JavaScript">
<!--
/* MjM'S JAVA CODENAME = PINGPONG
This JavaScript Code was written by MjM for
Hyperchat UK

This code can be modified as long as the Author's Name is still attached.
Email : MjM@hyperchat.co.uk
© Copyright 1996

*/
var yourwords = "* Welcome to My Javascripts for Fun *";
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=message
setTimeout("pingpong();",speed);
message1=message2;
if
(message1.substring(message1.length-1,message1.length) == "*") dir="left";
}
}
// -->
</scriptgt;
</HEAD>


Then you add this body onLoad.


<BODY onload="pingpong();">


Authors Homepage
http://chelsea.ios.com/~benny3/javascript/