PDA

View Full Version : how i use two javascript scroller on a single page simaltaneously



nasim
11-09-2004, 05:07 AM
i want to use two ticker on a single page .but it stop first ticker and start second ticker but i want to start both the ticker at the same time

Gabber
11-11-2004, 12:05 AM
there is a thing like that in javascript.internet.com

warning: it does make some bugs... not a good option

cr3ative
11-11-2004, 11:46 AM
Also, read the stickies before posting!!
These queries take far too long to process.

/me is angry.

cr3ative

tman
03-09-2005, 08:16 AM
Because JavaScript is not multithreaded, scripts and event handlers should be written so that they do only small amounts of computation and return quickly. If a script or event handler runs for more than about a half second, the delay will potentially be noticeable and annoying to the user. If your script runs for even longer than this (say 3 or more seconds) then the browser may appear to have "locked up" or "frozen" and the user may think that it has crashed.

So if you write your scrollers to work in a kind of "round robin" way, it would give the effect of both scripts running at the same time