|
Here's
the adjusted code for the above Java applet:
<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>
|
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 left
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 here
at Java Boutique (his websites -- the one referenced in the
applet code and the one he had at FX
Applets -- are closed).
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 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.
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.
Please
close this window to return to Applets
Index.
|