Margaret
03-22-2004, 04:50 PM
I want to create a status bar message that turns off and on repeatedly using:
1. the setInterval() method and
2. an if...then statement
This is my code, but it does not work. I do not understand how to employ an if...then statement in this situation. Thank you for your help.
<HTML>
<HEAD>
<TITLE>Flash Greeting</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--HIDE FROM NON JS BROWSERS
var statusMsg
statusMsg=window.setInterval("defaultStatus='This blinking message is annoying, is it not?';",2000);
//STOP HIDING-->
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
1. the setInterval() method and
2. an if...then statement
This is my code, but it does not work. I do not understand how to employ an if...then statement in this situation. Thank you for your help.
<HTML>
<HEAD>
<TITLE>Flash Greeting</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--HIDE FROM NON JS BROWSERS
var statusMsg
statusMsg=window.setInterval("defaultStatus='This blinking message is annoying, is it not?';",2000);
//STOP HIDING-->
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>