Intermediate Tutorial - Using the David Griffiths Lake Applet
This tutorial assumes that you have already downloaded the latest version of David Griffiths Java Lake applet - you will need the file 'lake.class'. If you need this get it from here.
First step is to find a suitable picture to lake. Look for a .jpg file. You can use a .gif file, but it should not be animated or transparent.
Here's the one which we are going to use. The file name is 'Arizona.jpg'
The image has been cropped at the shoreline where we wish the reflection to start
|<applet code=lake.class width=256 height=256 />||Here you enter the width and height of the image. In this case, it's the same, but, it doesn't have to be.|
|<param name=image value="arizonabk.jpg" />||This is the name of the image that will be reflected in the lake.|
|<param name=overlay value="arizona.gif" />||This is the name of the image which appears in the foreground, this one is optional. This image must have a transparent background and must be saved as a .gif|
|<img src="Arizona.jpg" alt="Aurora in Arizona" border=1 height=256 width=256 />||This image will appear, if the browser used can not display java.|
|<param name=rocking value="false" />||This parameter is set to 'true' if you wish the image to rock as if you were in a boat. This parameter can be omitted if you don't want the image to rock. Example with the rocking set to 'true'.|
|<param name=underwater value="false" />||This parameter is set to true, if you wish to produce an under water picture where the lake is at the top of the image. This parameter may be omitted. Example with underwater set to 'true'.|
|<param name=target value="_self" />||This parameter allows you to produce the results in a particular frame. Normal frame syntax applies. The parameter may be omitted.|
|<param name=href value="http://www.jaydax.co.uk/lak.htm" />||This parameter is used to enter the URL which will be jumped to if the image is clicked on. This parameter is optional but if you leave it out then clicking on the applet will go to David Griffiths original website - now a domain for sale. The URL shown is essentially a copy of his page.|
|</applet>||The end of the applet code|
See a different version using the Dorian GrayII applet and the Anfy huerot applet
Now this is where something
may go wrong!
If you are using an older version of the applet's class file - one named 'Lake.class', with an upper case 'L', then the foreground may not be in the right place. If that's the case, then it's back to PaintShop Pro to correct it by trial and error. Here's a copy of the foreground image which works with the older versions of the class file. Again, the green area is set to be transparent. If you do have to do this, then remember that PaintShop Pro has a keyboard shortcut where you can move a selected area by holding down the Shift key and using the cursor keys.