If you would like
to add a small gif image over top of your lake.class applet, it can be
accomplished easily enough. As you will quickly learn about this
applet, there are many different ways that you can change it up and
use it.
Only one class file
is needed, the lake.class file. You can download the class file
and sniplet of code that you will need from the files section
at Yahoo Groups. You can use any image, with little or no
preparation necessary. No water need be present in the image as
the class file and code will create a water reflection for
you.
The only extra item
that you will need is a small gif image
like the one I am using in the example
above.
*** Note - An
animation will not work well with this applet.
However, there are
other types of lake applets that will allow you to use
an animated image without
difficulty.
Choose a gif
image that will be proportionate to the height and width of your
applet. Since there are no parameters for positioning, the gif
image will appear to be floating on the water directly in the center of
your main image. There are other applets that have parameters
that allow for positioning of the gif
image.....one of
these that you might like to try is the DS
Effects Water applet with gif overlay.
Upload your images
to your website. If you are
following my methods, your applet images should be placed in the applets
folder.
Now for the
scripting part for the overlay image lake.class applet. There is only a small
paramater addition to
the code needed which you will find in the new code below.
Make the changes to the code that is hightlighted in red
below.
For Stationery
Use:
Copy the <applet> code above
and paste it onto a notepad document. Save the document as an .html file
and upload it to your website. I name my documents something similar to
my stationery creation .html for easy retrieval at a later date if
necessary for changes to be made to the file.
Once you have uploaded the file, you will use the name
of this file in the src="address" in the <IFRAME>
tag that is pasted into your stationery script. I have highlighted
in red in the code below the changes
that you will need to make.
Iframe
Code:
*Don't forget to change the height
and width of your image in the <iframe> tag.