[Javascript] Timed demo doesn't work as expected, why?

tedd tedd at sperling.com
Sun Mar 30 13:33:46 CDT 2008


At 6:14 PM +0100 3/30/08, David Dorward wrote:
>On 30 Mar 2008, at 18:07, tedd wrote:
>>
>>  However, what it does is wait for three seconds and then hides 
>>  everything.
>>  Why does it do that?
>
>setTimeout is non-blocking. You have three counters counting down 
>simultaneously, not one after the other.
>
>--
>David Dorward

David:

I was afraid of something like that.

How can I get it to be sequential?

Cheers,

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list