<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 5.50.4913.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Arial Black" size=2>I submitted a problem concerning this code
before. I no longer receive an Error message. However, when the
program is opened the only display presented is the Default display. There
is something wrong with the Switch code or it is not appropriate to use it this
way. Will someone please help me understand my mistake. This is just
a personal learning project but is important to me. Here is the code
after the changes:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial Black" size=2><head><BR><script
language="JavaScript"><BR><!--<BR>// please keep these lines on when you
copy the source<BR>// made by: Nicolas - <A
href="http://www.javascript-page.com">http://www.javascript-page.com</A><BR>//
Altered by S. K. Starr 11/18/02.<BR>var pace = 0;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial Black" size=2>function UpdateClock() {<BR> if(pace)
{<BR> clearTimeout(pace);<BR> pace =
0;<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial Black" size=2> var theDate = new
Date();<BR> var secCtr =
theDate.getSeconds();<BR> <BR> switch(secCtr)
{<BR> case secCtr <=
2:<BR> document.theForm.textDisplay.value="";<BR> <BR>
case secCtr > 2 && secCtr <=
5:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 5 &&
secCtr <=
7:<BR> document.theForm.textDisplay.value="";<BR> <BR>
case secCtr > 7 && secCtr <=
10:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 10 &&
secCtr <=
12:<BR> document.theForm.textDisplay.value="";<BR> <BR>
case secCtr > 12 && secCtr <=
15:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 15 &&
secCtr <=
17:<BR> document.theForm.textDisplay.value="";<BR> <BR>
case secCtr > 17 && secCtr <=
20:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 20 &&
secCtr <=
22:<BR> document.theForm.textDisplay.value="";<BR> <BR>
case secCtr > 22 && secCtr <=
25:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 25 &&
secCtr <=
27:<BR> document.theForm.textDisplay.value="";<BR> <BR>
case secCtr > 27 && secCtr <=
30:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 30 &&
secCtr <= 33:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 33 &&
secCtr <=
35:<BR> document.theForm.textDisplay.value="";<BR> <BR>
case secCtr > 35 && secCtr <=
38:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 38 &&
secCtr <=
40:<BR> document.theForm.textDisplay.value="";<BR> <BR>
case secCtr > 40 && secCtr <=
43:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 43 &&
secCtr <=
45:<BR> document.theForm.textDisplay.value="";</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial Black" size=2> case secCtr >
45 && secCtr <= 48:<BR> document.theForm.textDisplay.value
= "READ THIS NOW";<BR> <BR> case secCtr >
48 && secCtr <=
50:<BR> document.theForm.textDisplay.value="";<BR> <BR>
case secCtr > 50 && secCtr <=
53:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 53 &&
secCtr <=
55:<BR> document.theForm.textDisplay.value="";<BR> <BR>
case secCtr > 55 && secCtr <=
57:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> <BR> case secCtr > 57 &&
secCtr <=
59:<BR> document.theForm.textDisplay.value="";<BR> <BR>
default:<BR> document.theForm.textDisplay.value="no
display";<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial Black" size=2> pace = setTimeout("UpdateClock()",
1000);<BR>//document.write("CLOCK SECONDS " + secCtr);<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial Black" size=2>function startFlash() {<BR> pace =
setTimeout("UpdateClock()", 500);<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial Black" size=2>function stopFlash() {<BR> if(pace)
{<BR> clearTimeout(pace);<BR> pace =
0;<BR> }<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial Black"
size=2>//--><BR></script><BR></head><BR><body
onload="startFlash()" onunload="stopFlash()"><BR><form
name="theForm"><BR><input type="text" name="textDisplay" length="12"
style="font-size: x-large; text-align: center; background: #0000FF; color:
#FFFFFF;"><BR></form><BR></body><BR></html></FONT></DIV></BODY></HTML>