<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>The setTimeout argument is actually in
milliseconds, not seconds. It works in the right order only if I use 2
timers - one of the querks of JS! The image-hide runs after the slow routine, no
matter how long it takes. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Tim in Ireland</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=glenn_lanier@netzero.net href="mailto:glenn_lanier@netzero.net">Glenn
E. Lanier, II</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">'[JavaScript List]'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, September 26, 2005 2:51
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Javascript] Order of
script-processing</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma color=#000080>I read
your flow as three separate routines:</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080></FONT></SPAN> </DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>show()</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>SetTimer(slow(),5); // Start in 5
seconds.</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>SetTimer(hide(),10); // Start in 10 seconds.</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080></FONT></SPAN> </DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma color=#000080>What I am
suggesting is only one timer:</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080></FONT></SPAN> </DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>show()</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>SetTimer(slow(), 5);</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080></FONT></SPAN> </DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>slow()</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>{</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>.....</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080></FONT></SPAN> </DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>hide();</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>}</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080></FONT></SPAN> </DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma color=#000080>That way,
if slow takes 30 seconds, then the image isn't hidden
early.</FONT></SPAN></DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080></FONT></SPAN> </DIV>
<DIV><SPAN class=593054913-26092005><FONT face=Tahoma
color=#000080>--G</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
javascript-bounces@LaTech.edu [mailto:javascript-bounces@LaTech.edu] <B>On
Behalf Of </B>SkyScanner<BR><B>Sent:</B> Monday, September 26, 2005 8:44
AM<BR><B>To:</B> [JavaScript List]<BR><B>Subject:</B> Re: [Javascript] Order
of script-processing<BR><BR></FONT></DIV>
<DIV><FONT face=Arial><STRONG>Huh? That's exactly what I did do...
show:slow:hide</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=Arial></FONT></STRONG> </DIV>
<DIV><STRONG><FONT face=Arial>Tim in Ireland.</FONT></STRONG></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=glenn_lanier@netzero.net
href="mailto:glenn_lanier@netzero.net">Glenn E. Lanier, II</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">'[JavaScript List]'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, September 26, 2005 1:52
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Javascript] Order of
script-processing</DIV>
<DIV><FONT
face=Arial>showGif('icon_5');<BR>setTimeout("slowRoutine()",10);<BR>setTimeout("hideGif('icon_5')",10);</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV> <SPAN class=564065012-26092005><FONT face=Tahoma
color=#000080>[GEL>] Why don't you move hideGif() to
the end of slowRoutine? That way, if it takes more time on a
slower machine, your image isn't
hidden early. </FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Javascript
mailing
list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Javascript mailing
list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BODY></HTML>