WordPress.org

Ready to get started?Download WordPress

Forums

Snow Plugin? (25 posts)

  1. Joseph Jacobs
    Member
    Posted 8 years ago #

    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?

  2. IsaacSchlueter
    Member
    Posted 8 years ago #

    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.

  3. gutielua
    Member
    Posted 8 years ago #

    Personally, I used this for my BLOG's

    http://www.dynamicdrive.com/dynamicindex3/snownoimages.htm

    Regards!

  4. MichaelH
    Member
    Posted 8 years ago #

    This might be a starting point for those requesting Christmas themes.

  5. jimatwork
    Member
    Posted 8 years ago #

    I used another one of their snow scripts. They all work well.

  6. gutielua
    Member
    Posted 8 years ago #

    jimatwork, can you give us some examples?

    Tnx in advance!!

  7. Beel
    Member
    Posted 8 years ago #

    Nice snowflake, too bad it is stuck :P

  8. vkaryl
    Member
    Posted 8 years ago #

    Works for me.... got your js disabled, Beel?

  9. Beel
    Member
    Posted 8 years ago #

    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

  10. vkaryl
    Member
    Posted 8 years ago #

    I'm using FF.... 1.5....

  11. jwurster
    Member
    Posted 8 years ago #

    That's the script I have on my site.

  12. Beel
    Member
    Posted 8 years ago #

    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

  13. 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. :)

  14. Beel
    Member
    Posted 8 years ago #

    And now works in FF 1.0.7

  15. gatewayy
    Member
    Posted 8 years ago #

    I also have it running over at http://gatewayy.net and it was pretty easy to do. Poke me if you need any help. :)

  16. gutielua
    Member
    Posted 8 years ago #

    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!

  17. 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.

  18. gutielua
    Member
    Posted 8 years ago #

    WoW Viper!

    You are a genius... tnx a lot!

    Regards from México!

  19. gatewayy
    Member
    Posted 8 years ago #

    Can you elaborate on how that works?

  20. 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.

  21. HexiumVII
    Member
    Posted 8 years ago #

    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?

  22. gutielua
    Member
    Posted 8 years ago #

    somebody knows some wordpress theme for xmas?

  23. vkaryl
    Member
    Posted 8 years ago #

    Check a few topics back down the page....

  24. gutielua
    Member
    Posted 7 years ago #

    Just to remember this topic, I put the snow again on my blogs.

    Regards!

    @

Topic Closed

This topic has been closed to new replies.

About this Topic