Hi thank you Philip M. This script really works!
I found there is maybe a problem with window.onload function in snow.js
Could you look on it please? It is so puzzled.

here it is:

Code:

http://tomak.borec.cz/snow.js

08-19-2013, 11:40 PM

Old Pedant

You can't use window.onload in that script.

By the time the code is run to put that script in place, window.onload has already occurred.

Your test for browserok is VERY VERY OLD and UNNEEDED code. Get rid of it. *ALL* modern browsers will support that script.

But, in general, that script is too old to be worth using. It is *STILL* using document.write() which became essentially obsolete and unnecessary about 15 years ago!

Personally, instead of conditionally including the <script>, I would just *ALWAYS* include it (it's a small script, after all) but then only *RUN* the script when the time of year is right.

And there is so much *CRAP* unneeded code in there, in any case, it could be twice as small as it is.

Throw it out. Start over.

08-19-2013, 11:44 PM

Old Pedant

Other things wrong with that code: All the "snowflakes" fall at the same speed. Yuck. It uses a character ("." in your version, "*" in the recommended version) instead of *IMAGES* for the flakes! (If you use real images, they look better and you don't need as many.)

Oh, w.t.h. Let me see if I can find my old snowfall code that looks and works much better.