web statistics

Create Snowfall Effect This Christmas On Your Site Using JavaScript

Posted on December 17th, 2009 under Uncategorized
ADVERTISMENTS
Share |

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.

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

    <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

Written by Avinash

Browse Tech Yard for the latest & interesting web applications, Freewares, Wordpress Tips, Firefox Hacks and Addons, Mobile Phones, Windows - Linux - MAC OS Tricks.

Stumble Digg Technorati Reddit Delicious


Related Posts

Leave a Reply

Subscribe to TECH YARD:

RSS

Grab the RSS feed for Free Updates!


subscribe

Get blog updates sent directly to your inbox by entering your email address above.

Popular Posts

Sorry. No data so far.