Full description
of all features of Snow applet
-
parameters with this sign are mandatory - applet won't work without them
Basic configuration - which
image to display
The only parameter that is necessary
for applet to work is the file-name of your image.
<applet width="300"
height="200" code="Snow.class">
<param name=Image value=myimage.jpg>
</applet>
If the image isn't in the same
folder as .html file
- You can put your image file whwerever you want (on
the same server as .html) file, and specify the relative path to it. Example :
<applet width="300"
height="200" code="Snow.class">
<param name=Image value=../images/kiss.jpg>
</applet>
If the .class file isn't in the
same folder as .html file
- Again, you just have to specify the relative path to
it. Just remeber that the image path is relative to .html file's location. Example :
<applet width="300"
height="200" code="../java/snow/Snow.class">
<param name=Image value=../images/kiss.jpg>
</applet>
Configuring the applet look
- The
width and the
height of the
applet determine the size of the image it displays. Please note that image size itself is
overriden by these parameters. Example of shrinking previously used image :
<applet width="150"
height="100" code="Snow.class">
<param name=Image value=myimage.jpg>
</applet>
Snow density
- The Density parameter determines the -
you guess - the snow density. The higher value, the dense snow gets ... Default value for
density is 4. It can vary from 1 to 10.
<applet width="150"
height="100" code="Snow.class">
<param name=Image value=myimage.jpg>
<param name=Density value=2>
</applet>
Snow size
- The Size parameter is , of course, for
the snow size .... Default value for size is 3. It can vary from 1 to 10. We recommend
sizes up to 6.
<applet width="150"
height="100" code="Snow.class">
<param name=Image value=myimage.jpg>
<param name=Size value=5>
</applet>
Snow speed
- To be clear - this is the vertical speedof snow.
Default value for Speed parameter is 4. It can vary from 1 to 10. Small speed, with medium
density and size can make soem really romantic snow ...
<applet width="150"
height="100" code="Snow.class">
<param name=Image value=myimage.jpg>
<param name=Speed value=1>
</applet>
Wind speed and direction
- ...is set by Wind parameter. It determines the
wind strength (horizontal) and direction. It can vary from -5 oi 5. Negative values are
for wind blowing from right to left, and positive values are vice versa. 0 means no wind -
this doesn't look so nice. Default value is 1.
<applet width="150"
height="100" code="Snow.class">
<param name=Image value=myimage.jpg>
<param name=Wind value=-2>
</applet>
Snow colour
- Color parameter(s) - this parameter defines the color of the snow. The syntax for
color definition is: R,G,B (0<=x<=255). Watch out for the syntax - no spaces between
the commas. Default color is, of course, white ...
<applet width="150"
height="100" code="Snow.class">
<param name=Image value=myimage.jpg>
<param name=Color1
value="68,14,255">
</applet>
StatusText
- StatusText will be display on the status bar of your browser when you come
with your mouse over the applet.
<applet width="150"
height="100" code="Snow.class">
<param name=Image value=myimage.jpg>
<param name=StatusText
value="Put here whatever you like">
</applet>
Click
- If you click your mouse over the applet, you browser
will go to the specified page. You must enter the full URL of your
destination page.
<applet width="150"
height="100" code="Snow.class">
<param name=Image value=myimage.jpg>
<param name=Click
value="http://www.my-friend.com">
</applet>