Is there a plugin that allows you to have snow falling all over your page? I have a few JavaScript codes that do it but they dont work on WordPress. Perhaps there's a way to include the javascript that I don't know of. Can anyone help?
Is there a plugin that allows you to have snow falling all over your page? I have a few JavaScript codes that do it but they dont work on WordPress. Perhaps there's a way to include the javascript that I don't know of. Can anyone help?
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.
Personally, I used this for my BLOG's
http://www.dynamicdrive.com/dynamicindex3/snownoimages.htm
Regards!
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
Line: 72
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!
Use this:
<script type="text/javascript" src="/wordpress/snow.js">
When you visit a permalink, it tires to look in that fake folder for the Javascript file and it can't find it.
WoW Viper!
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 http://www.gutielua.com/wordpress/250/tecnologia/snow.js.
Using "/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.
Regards!
@
This topic has been closed to new replies.