More Lake.class : Frog Prince, More Frog, Frog Links
Click for Bonus Page
With Lake.class 'overlays'
Instructions on how to use a Java Lake class Image for a web page.
Step 1: Click on and save the following file to your hard disk (be sure to use the name as shown below i.e. lake.class):
Footnote: There is already a copy of the class file(s) in your 'cache directory' after you load an applet. Therefore, clearing your cache before loading a page is a great trick to find any hidden .class files that are required for an applet.
Step 2: Use the right mouse button to save the following image (mypic.jpg):

Step 3: Upload the two files to the web host.
Step 4: Insert the following applet code in the HTML file:
<center>
<applet code="lake.class" width="280" height="440">
<param name="image" value="mypic.jpg">
<param name="href" value="http://www.ibdprince.com/java.shtml">
</applet>
</center>
Footnote (Warning): The lake.class and the image file should be in the same directory as the HTML file. Otherwise, the path info must be in a 'codebase' statement and in the image 'value'.
For example, at a Homestead site a 'files' directory/folder should be included in the code. Examples: <applet code="lake.class" codebase="files/" width....... etc and <param name="image" value="files/mypic.jpg"
BTW: Java .class files are case sensitive i.e. Lake.class is not the same as lake.class :(
End of Code
Instructions for using the 'lake.class' applet with another image.
Summary: (Example) If the image is 300 by 100 then the applet width = 300 (or slightly less). The applet height = 2 x 100 = 200 -10 = 190 (i.e. 10 less than double the height). Now change the applet code to match the new image name, width and height. Then upload all (HTML, image, lake.class) files to the same directory on the host.
Snow Effect
Applet Code:
<applet code="snow" width="280" height="225">
<param name="image" value="mypic.jpg">
<param name="strength" value="6">
<param name="href" value="http://www.ibdprince.com/java.shtml" >
</applet>
Footnote: Strength Values = 1 to 10 (10 = very heavy)
Requires:
Updated: Wed, Jan 07, 2009
© 1995-2009