JavaScript
Status Bar Scroll
Back


Displays a scrolling message in the browser status window

There are two parts to this script. Part 1 is placed between the HEAD tags of your document. Part 2 is placed between the first BODY tag of your document.

Place part 1 code between the HEAD tags of your document.

Part 1 Example:
<HEAD>
Place part 1 code here
</HEAD>
Part 1 Code:
<SCRIPT LANGUAGE="JavaScript"> 
<!-- hide from old browsers
var count = 0;
// Change the number after delay to change scroll speed. 
// Higher number equals slower scroll.
var delay = 250;
// text between quotes will display in the status window. 
// Leave blank spaces after text.
var text = "Dave's Home Page...                      ";
function  scroll () {
       window.status = text.substring (count, text.length) + text.substring (0, count)
        if (count < text.length)
                count ++;
        else
                count = 0;
        setTimeout ("scroll()", delay);
}
// end hiding -->
</SCRIPT>



Place part 2 code between the first < BODY> tag of your document.

Part 2 Example:

<BODY onLoad="scroll();">

Part 2 Code:

onLoad="scroll();"


Rate this script
Excellent Acceptable Poor
Comment: