Create Snowfall Effect This Christmas On Your Site Using JavaScript

snowfall I’ve earlier shared two wordpress plugins for getting a snowfall effect on your wordpress blog, here’s a tutorial for generalizing this and making the effect possible on any site using a simple JavaScript By Altan.


  1. Download the javascript file (right click and Save Target As). Rename snow.txt to snow.js.
  2. Download the snow images (right click and Save Image As). You may use any image.snow1 snow2 snow3
  3. Upload the image files and javascript file to the root folder (or) all into a same folder.
  4. Place this code under the header ie., <head></head>

    <script type=”text/javascript” language=”javascript”>

    var snowsrc=”snow3.gif”;

    var no = 20;


    <script type=”text/javascript” src=”snow.js” language=”javascript”></script>

    the two variables snowsrc and no can be changed,

    snowsrc is the link to snow image that you would like to use.

    and no is the number of snow flakes that you like to have on the screen.

  5. Check out the demo at Dynamic Drive
Similar Post  Install Multiple Keyboard Layouts In Windows


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.