Put this in your theme's
header.php, between the
The theme file to change is at
script.js file, without any
Personally, I used this for my BLOG's
This might be a starting point for those requesting Christmas themes.
I used another one of their snow scripts. They all work well.
jimatwork, can you give us some examples?
Tnx in advance!!
Nice snowflake, too bad it is stuck :P
Works for me.... got your js disabled, Beel?
Nope, it does not work in FF because the script is meant to be run in the body and not the head so there are script errors. I have had it up on my site all day.
Error: document.getElementById("dot" + i) has no properties
Source File: http://www.viper007bond.com/snow.js
I'm using FF.... 1.5....
That's the script I have on my site.
Yes, but you will find if you move it into the head (u have it correctly in the body), it will return script errors in Web Developer and stop working. This is something I pointed out about this time last year in a few "It no workie" threads.
Additionally it uses alot of the CPU - some 50 to 60% in both IE and FF, so many don't leave it up long. You can check it using a neat little program called Process Explorer
Works fine in Firefox v1.5 here, but you're right about it needing to be in the body rather than the head. Moving it now. :)
And now works in FF 1.0.7
I also have it running over at http://gatewayy.net and it was pretty easy to do. Poke me if you need any help. :)
I'm watching that only I can see snow on index page, but not por each page or post, did you know why?
Tnx in advance!
You are a genius... tnx a lot!
Regards from MÃ©xico!
Can you elaborate on how that works?
gutielua: haha, no problem. :)
gatewayy: If you use just
"snow.js", that tells the browser to look in the current folder for the file. Well if you're at
http://www.gutielua.com/wordpress/, that works fine as the JS file is located at
http://www.gutielua.com/wordpress/snow.js. However, if you were to view a permalink, such as
http://www.gutielua.com/wordpress/250/tecnologia, browsers would look for the JS file at
"/wordpress/snow.js" tells browsers to start at the root (the first slash does that) no matter what the current URL is.
You can also do like
../snow.js to always look in the directory above the current directory,
../../snow.js to look 2 directories above the current one, and so forth.
Damn after working on it for like 2 hours, i used dynamic drives one and finally got it working. Anyone know if i can make a button to turn it on/off?
somebody knows some wordpress theme for xmas?
Check a few topics back down the page....
Just to remember this topic, I put the snow again on my blogs.
This topic has been closed to new replies.