~ lake.class applet with gif overlay ~
 
 
 
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:
 
 <APPLET codeBase="http://your website addy/" code=lake.class width=312 height=480><PARAM NAME="overlay" VALUE="applets/gif image name.gif "><PARAM NAME="image" VALUE="applets/image name.jpg"></APPLET>
 
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:
 
<IFRAME class=iFrameA height=480 marginHeight=0  src="http://www.your website.com/name of applet file.html"  frameBorder=0 width=312 marginWidth=0 scrolling=no></IFRAME>
 
*Don't forget to change the height and width of your image in the <iframe> tag.
 
For Webpages Use:

<APPLET code=lake.class width=312 height=480><PARAM NAME="overlay" VALUE="applets/gif image name.gif "> <PARAM NAME="image" VALUE="applets/image name.jpg"></APPLET>
 
  I hope you will try this variation of the lake.class applet. It gives your applet a beautiful 3-dimensional effect.
As always, If you should need any help, please don't be afraid to ask Karen, Shari, NormaJean or any of the other group members for assistance. We will be glad to help you.
 
Hugs,
 
Karen
 
 
 
Copyright İFebruary, 2002 - All Rights Reserved.
(Updated - February, 2011)