Falling Leaves

In autumn the leaves of some trees fall to the ground. Nothing like that ever happens on the internet though does it? Well as you can see on this page, leaves can fall down a web page just as easily as they fall from trees.

Adding this effect to your web page is very simple because I have already done nearly all of the work for you. All that you need to do is to download the falling leaves script and unzip it onto your web site.

Once the script is on your site you can easily add it into a web page just by adding the following one line of code into the head of your page.

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

If necessary you can amend the values in the top of the script to change the number of leaves to be displayed or to change the name of the folder containing the leaf images. You can also substitute your own 38 pixel by 38 pixel leaf images for the 8 images supplied if you desire just by renaming your chosen images to leaf1.gif through leaf8.gif.


This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow