Status Bar using JavaScript


This script displays messages in the status bar of your browser. You can add your own message and it will be displayed in the status bar the way shown below.

<SCRIPT> 

<!--
var ShowString = " " //The first line must be blank
+ "JavaScript Scrolling Text Demo is here... " //You can keep adding words in this pattern (+ "Words")
+ "Ain't it cool? You can have it by copying "
+ "the source code in this script.... "

//-------------------------------------------------------------

var ShowWidth = 100
var ShowHead = 0
var ShowTail = ShowWidth
var ShowLength = ShowString.length

//-------------------------------------------------------------

function Marquee ()
{
var DisplayString
if (ShowHead < ShowTail)
DisplayString = ShowString.substring(ShowHead, ShowTail)
else
DisplayString = ShowString.substring(ShowHead, ShowLength)
+ ShowString.substring( 0, ShowTail)

//----------------------------------------------------------

ShowHead = (ShowHead + 1 ) % ShowLength
ShowTail = (ShowTail + 1 ) % ShowLength

//----------------------------------------------------------

window.status = DisplayString

//----------------------------------------------------------

TimerID = setTimeout("Marquee()", 100) //Change the number to change the speed (the fewer, the faster)
}
//=============================================

//-->

</SCRIPT>
=====================================
part 2
=======================================
<!-- A1 -->
<BODY onLoad="Marquee()"><!-- -->




Added on June 27, 2007 Comment
}