OZONE Asylum
Forums
DHTML/Javascript
how does set time out work?
This page's ID:
27991
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Timing. The concept of spawning a new thread is somehow "correct", although these aren't real threads. But, since this concept is correct, the new thread runs as a separate branch of your application. So, as soon as the first fade is called with true as the first param, the second call is made with false as the firs param. What you have is a concurrency issue: both calls to fade run almost simultaneously. You're better off, and this comes straight from the Doc, using a unique timer for all visual effects. A unique thread of some sort which handles a "queue" of animated objects at any given time, and processes them. Try poking at Doc's sources, or p01's, or mines for such a global, simple timer (for instance www.beyondwonderland.com => javascript pong)
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »