(Last Updated 9/7/98)
Java Script Status Bar Writer

A script to write something on the status bar using mouse actions as the initiator.

(Picture drawn by DeAnna Krusman.)
Tickle me little friend with the
mouse pointer.
The code to produce the effect is quite simple. At the picture I have inserted:
In this snippit, the Anchor points to itself ("#") because I'm not using it as a
link to another page and the two messages are relatively obvious.
To implement this, two functions are included in the header. They are:
function message1(txt) {
window.status=txt;
setTimeout ("remove()",7500);
}
function remove() {
window.status= "";
}
The first function {message1(txt)} writes text on the status bar. After the time
"7500" thousanths of a sec (7.5 seconds), message1 calls function 2 {remove()}.
This function then erases the message (overwrites it with a null message).
At this point I was going to go into a discourse on Objects, Methods, Properties,
and Actions. I then realized that anyone who needed or wanted to know probably
already did and the concepts aren't needed to use the scripts. Suffice it to say:
"window" refers to the browser (present) window object; "status" is a property of
that object and it is referenced with the dot operator; and setTimeout is a method
(with 2 arguments) defined internally for the object.

Contact Carl Paulson with questions,
or Visit my pages.