Put this in your theme’s header.php, between the <head> tags.
<script type="text/javascript" src="http://domain.com/path/to/script.js"></script>
The theme file to change is at /wp-content/themes/theme_name/header.php.
Put the JavaScript in the script.js file, without any <script> tags.
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 😛
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
Line: 72
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. 🙂