[thelist] newbee

Joshua Olson joshua at waetech.com
Tue Mar 18 11:19:59 CST 2003


----- Original Message -----
From: "Martin" <martinmc116 at austin.rr.com>
Sent: Friday, March 14, 2003 5:18 PM


> make a flashing greeting in the status bar.  I get the status bar to
display the greeting, but i don't get how to/what to use as the conditional
to have the message turn off, then back on continuously.

Martin,

var status_on = false;

function flash()
{
  if(status_on)
    window.status = '';
  else
    window.status = 'Hello, world.';

  status_on = !status_on;
}

setInterval('flash()', 1000);

HTH,

-joshua

P.S.  www.irt.org is an excellent resource for this tiny "how do I do this
trick?" type of scripts.




More information about the thelist mailing list