Click to See Complete Forum and Search --> : How can i make it stop snowing?


Krisis
12-31-2002, 03:42 AM
Hi there

As it is the season of snowing(which reminds me: happy newyear), I had the idea of putting some snow on my website. I Looked, I came and I succeeded: I found a script making it snow (www.altan.hr/snow/).

It realy looks cool (this is supposed to be intelligent humor), but I have one problem: It slows down my site. Opening html pages via links for instance works, but far to slow. Opening asp pages works if you have the time to wait 5 minutes.

I think I know what the problem is, but I don't know how to solve it: If I try to open a page via a link, the browser tries to, but it can't manage to open it at once. I know the browser tries to open a page because of the changing color of the menu -or location -or whatever-it-is-called-bar (in this case that bar says "Web Developper Forum - ..."). But as it turns into gray, it immediately changes back to its normal color, what for all I know means that the first page is active again. It keeps doing so till it finally jumps to the desired page all of a sudden.

My explanation: the javascript that makes it snow is a loop and the browser doesn't know (and I don't know either) how to make it stop. As the browser tries to open the page, the javascript makes the page active again.

My question: Is this realy my problem or am I wrong? If I am wrong, what IS my problem? Is there a way to stop the loop if a link is opened?

thankx.

Happy newyear.

jpbertra
12-31-2002, 09:13 AM
post the code of your page and I'll try to help you...