Unofficial Tips and Tutorials for Homestead SiteBuilder™ Users


Home - Tips & Tutorials - JavaScript Demos - Java Applet Demos - Resources - Contact

Snow Effects Applet by Ibon Tolosana >>>

This applet warrants a demo because it's different from the other snow applets -- the snow piles up! Refresh page to clear the snow. See the adjusted code to the right and the explanations below. You'll notice I used the same photo as in the other snow applets for comparison. You can get the applet files as a zip file here at Java Boutique (his websites -- the one referenced in the applet code and the one he had at FX Applets -- are closed. He now works for Anfy.).

This demo uses two images. You can omit the backimage, which is the background image from freefoto.com used in the demo. If you do not use an image, you need to specify the background color, which is the backred, backgreen, and backblue, and enter the backimage value as "no" rather than an image name.

The foreground image, image1, should be a .gif or .png with a transparent background. I've used the text image, "snowbank" here. You can add as many images as you want, but follow the naming rule used. Your second image should be named "image2", etc.

(continued in right-hand column)

Here's the adjusted code for the Java applet below:

<applet code="snowFX.class" name="snowFX" codebase="files/" width="200" height="300">
<param name="image1" value="files/xxxxx.gif">
<param name="url1" value="http://www.izar.net/~ibon">
<param name="msg1" value="message">
<param name="credits" value="Applet by Ibon Tolosana (www.izar.net/~ibon.html)">
<param name="backred" value="0">
<param name="backgreen" value="0">
<param name="backblue" value="0">
<param name="snowfactor" value="1500">
<param name="backimage" value="files/xxxxx.jpg">
<param name="showimages" value="yes">
<param name="frame" value="_blank">
</applet>

The width and height of the applet should be the size of your background image. If you don't use a background image, use 300 for the width and 200 for the height, or adjust to suit your page.

The snow factor is how much snow you want to fall. Check out the 1500 to see if that's good for you or adjust up or down.

The entire applet can be used to link to another page, if you wish, such as when it's used on a splash page.

Do not remove the credits line. It is required in order to keep this applet free.

Remember to upload the Producer.class, snowFX.class, and image files to the Imported Files directory. Otherwise, all you'll see is a gray box on the page.

Formerly hosted at
www.geocities.com/ramblingtutor/

Home - Tips & Tutorials - JavaScript Demos - Java Demos - Resources - Contact

Webpage graphics by Arride Graphics
Copyright © 2000- Rambling Tutor and JanetS
All Rights Reserved
All other copyrights belong to their respective owners as noted.


Plus 260 visitors before joining Site Meter on June 11, 2001