Scrolling status bar message


This script will enable you to place a scrolling message along the bottom of the browser window. It is pretty much the same as the scrolling banner only that it places the message in the status bar instead of a box.

Here is the script:

<SCRIPT LANGUAGE="JavaScript">
var timed = 0;
var scrollGo = false;
var delay=100; //make this variable lower to speed scrolling, higher to slow it down
var space=100;
function scroll_start() {
var i=0;
msg="Write in a message here to scroll across the screen";
for (i=0;i<space;i++)
msg=" "+msg;
scrollGo=true;
timerid=window.setTimeout("scrollmsg(0)",delay);
}
function scrollmsg(pos) {
var out = "";
scrollGo=false;
if (pos < msg.length)
self.status = msg.substring(pos, msg.length);
else
pos=-1;
++pos;
scrollGo=true;
timerid=window.setTimeout("scrollmsg("+pos+")",delay);
}
</SCRIPT>
<BODY onLoad="scroll_start();">
</BODY>




Home | Islam | Jokes | FunZone | Games | Tips | Links | About Me

 






Hosted by www.Geocities.ws

1