|
The scrolling message in the status line of the browser trick
How to do this...
This is actually a small Java applet, not HTML. Since it does
not require any external programs to be loaded, I figured I
would stick it in this section!
To install this on a page, just cut and paste the source
code below into the top of your document. Make sure
that you do not split the line containing OnLoad in
the <BODY> tag.
NOTE: Be careful when submitting your page to search
engines. Some are pretty dumb and your document's description
could end up being the Java code! Make sure you have a very
descriptive <TITLE> entry!!!
source code
<HTML>
<HEAD>
<TITLE>The scrolling bottom message page</TITLE>
</HEAD>
<script><!-- The Scrolling Message Java Applet ----------
function scroll_status (sval)
{
var msg = "This is the BigNoseBird Scrolling Message!!!";
var out = " ";
var c = 1;
if (150 < sval) {
sval--;
var cmd="scroll_status(" + sval + ")";
tmx2 = window.setTimeout(cmd, 25);
}
else if (sval <= 150 && 0 < sval) {
for (c=0 ; c < sval ; c++) {
out+=" ";
}
out+=msg;
sval--;
var cmd="scroll_status(" + sval + ")";
window.status=out;
tmx2=window.setTimeout(cmd,25);
}
else if (sval <= 0) {
if (-sval < msg.length) {
out+=msg.substring(-sval,msg.length);
sval--;
var cmd="scroll_status(" + sval + ")";
window.status=out;
tmx2=window.setTimeout(cmd,25);
}
else {
window.status=" ";
tmx2=window.setTimeout("scroll_status(150)",25);
}
}
}
// -- End of JavaScript code ------- --></script>
</SCRIPT>
<BODY BGCOLOR="#FFFFFF"
OnLoad="tmx1a=window.setTimeout('scroll_status(100)',50);">
|