Status Line "Continued"

Try the following script here. Just move your pointer over it - don't click it!

Just have a look at the source and you'll see that it is easier than it seems on the first glance.

<SCRIPT>

function StatusBar(str) {
   status = str;
   // wait 1.5 seconds then call the erase function
   setTimeout("erase()", 1500);
}

function erase() {
   // the message in the Status Bar gets "erased"
   status = "";
}

</SCRIPT>

<BODY>

<A HREF="javascript:void('')"
  onMouseOver="StatusBar('Disappearing!'); return true;">link
</A>

  • javascript:void('') "deadens" a link, you will see more examples of this later on in the course
  • onMouseOver calls the StatusBar() function