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 (<!-- w --><a class="postlink" href="http://www.altan.hr/snow/">www.altan.hr/snow/</a><!-- w -->).
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.
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 (<!-- w --><a class="postlink" href="http://www.altan.hr/snow/">www.altan.hr/snow/</a><!-- w -->).
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.