1. Home
  2. Computing & Technology
  3. JavaScript

Falling Snow

3. Add to Your Page

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Introduction Obtain the Script

Related Terms

DHTML DOM

All that remains to be done now is to add the falling snow script into your web page. To do this we first add the script code to your page by placing the following into the head section:

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

The final step to install the script is to place the following code at the bottom of the body section of your page to trigger the effect once the page has loaded.

<script type="text/javascript">
startSnow();
</script>
Sample Page | Obtain the Script | Add to Your Page
Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.