|
This script utilizes the status
bar in the browser window to scroll a message for your
visitors. Since this script uses the <body onLoad>
command, I've included Stan Bisson's workaround for you to use
this in SiteBuilder. I've tested it and it works! Copy
(CTRL-C) and paste (CTRL-V) the script into one Insert HTML
element, change the message including any spaces on each line
of text, and put in the top left corner of the page without
overlapping other elements. Look at your status bar for my
message.
<img src="/tp.gif"
width="1" height="1" onLoad="scrollit(100)">
<SCRIPT>
<!--
function scrollit(seed) {
var m1 = "Cool status bar scroller";
var m2 = " for your web pages";
var m3 = " and works in most browsers!";
var m4 = "";
var msg=m1+m2+m3+m4;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit(100)",75);
}
}
}
//-->
</SCRIPT>
Please close
this window to return to the Scripts Index page
|