web statistics
Image 01 Image 02

Create Snowfall Effect This Christmas On Your Site Using JavaScript

0
Share |

snowfall thumb Create Snowfall Effect This Christmas On Your Site Using JavaScript 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.

Steps

  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 thumb Create Snowfall Effect This Christmas On Your Site Using JavaScript snow2 thumb Create Snowfall Effect This Christmas On Your Site Using JavaScript snow3 thumb Create Snowfall Effect This Christmas On Your Site Using JavaScript
  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>

    <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

Posted on 17th December 2009 by Avinash under category Tips,Tricks and Hacks, Tutorials, Web 2.0


Leave a Reply


Web Informer Button