corner gif
border gif
corner gif
border gif
Lorraine's Lakes
border gif
corner gif
border gif
corner gif

 

 

The Snow Applet

This applet is made by using an image and adding the code for the snow applet.

Items required are:

  1. A suitable image - right click and save this one to your computer.
  2. The Alcsnow applet (from resource link)
  3. A copy of the applet code (follows)
  4. Your web page (see here for instructions)

Let's get started!

This image's measurements are: height = 262 and the width is 334 pixels. These are inserted into the following code. Where there is an item in red add your own image information.

<applet code="alcsnow.class" width="334" height="262" name= "snow" alt="Robins">

Setting up the applet code. "Robins" is the name of this image.
The height and width for this image are entered here also.

<param name="grph" value="robins.jpg">

Name of your image goes in here.

<param name="snows" value="1000">

The value can be changed. This gives the number of snowflakes.

<param name="threadsleep" value="50">

This value alters the direction of the snow.

</applet>

End of the applet.

That's all there is to it! Copy the code below and paste this code to your web page. You can also paste it into Notepad and save it now to copy into your web page later.

<applet code="alcsnow.class" width="334" height="262" name= "snow" alt="Robins">
<param name="grph" value="robins.jpg">
<param name="snows" value="1000">
<param name="threadsleep" value="50">
</applet>

Make sure that the alcsnow applet and the image are in the same folder as your web page, or that you have given the path, (e.g., graphics/robin.jpg) so that the browser knows where to find them.

 

Check the message board for posts on the Snow applet.
Tutorial Index


Home | Lake applet tutorial | Horizon applets | Snow applet tutorial |Overlay Tutorial | Tips and Hints | Publish to Web | Resources |

Copyright © 2000 Lorraine's Lakes