|
Change setInterval to setTimeout the way you are doing it. Or move the setInterval to the onload function.
What's happening?
the setInterval will call the function over and over. The prob, the end of the function starts ANOTHER interval. So, everytime the function runs you are stacking up another one. After 10 minutes, you've got 11 intervals running, all trying to mess with the dom.
BTW, 100% CPU is not the same as crashing. If Firefox crashed, it would not be running anymore.
Last edited by willcode4beer; 07-24-2008 at 08:52 PM..
|