1. Home
  2. Computing & Technology
  3. JavaScript

Falling Snow

2. Obtain the Script

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Introduction Add to Your Page

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

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.