<!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>At the line 'var secCtr =
theDate.Seconds();', I get the error message "Object does not support this
property or method". The code that contains it is used to flash a message
in a TextBox. When I replace the secCtr variable with
theDate.Seconds() and use it in If statements, it works.
Some one please explain to me in simple terms why I'm getting the
error message. Here is the code:</FONT></DIV>
<DIV><FONT face="Arial Black" size=2></FONT> </DIV>
<DIV><FONT face="Arial Black" size=2><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01 Transitional//EN"<BR> "<A
href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</A>"><BR><html><title>Text
Flash XP</title><BR><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. 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.Seconds();<BR> <BR> switch(secCtr)<BR> {<BR>
case secCtr <=
2:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 2 && secCtr <=
5:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 5
&& secCtr <=
7:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 7 && secCtr <=
10:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 10
&& secCtr <=
12:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 12 && secCtr <=
15:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 15
&& secCtr <=
17:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 17 && secCtr <=
20:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 20
&& secCtr <=
22:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 22 && secCtr <=
25:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 25
&& secCtr <=
27:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 27 && secCtr <=
30:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 30
&& secCtr <= 33:<BR> document.theForm.textDisplay.value =
"READ THIS NOW";<BR> break;<BR> case secCtr
> 33 && secCtr <=
35:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 35 && secCtr <=
38:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 38
&& secCtr <=
40:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 40 && secCtr <=
43:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 43
&& secCtr <=
45:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 45 && secCtr <=
48:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 48
&& secCtr <=
50:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 50 && secCtr <=
53:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 53
&& secCtr <=
55:<BR> document.theForm.textDisplay.value="";<BR> break;<BR>
case secCtr > 55 && secCtr <=
57:<BR> document.theForm.textDisplay.value = "READ THIS
NOW";<BR> break;<BR> case secCtr > 57
&& secCtr <=
59:<BR> document.theForm.textDisplay.value="";<BR> break;<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>}</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>