Make your own free website on
Click here to visit our sponsor
Please Visit Our Sponsors
And Code

Starburst Cursor

Java Applets
And Code

Lake Applet
ALC Snow
Laser Banner
Pool Menu
Hawk Ray
Pixel Dust
Anim Text
Alex Warp
D Water
Fast Wave
Ripple Waves
Water R
Java Applet - Lake
Code And Tutorial

Tutorial created on: 2/1/1997
This Java Applet will work for any picture (.GIF) or (.JPG)
and can be any size. It also can be used as a link, and also
can have an overlay. All that is needed is a few lines of
HTML code added to your page, your favorite picture,
and the Lake.class file.
Below is the HTML code that I used in the
Second Applet Example:
This example draws a border (frame) around the picture

Cut & Paste From Below:

Below is a simplified version:

Below is a version that when you click on the image
it will take you to a new webpage of your choice:
(Change "nameofnewpage.html"
to where your new webpage URL is).

Change "mountain.jpg" to the name of your own picture.
The width of the applet = the original width of your picture.
The height of the applet should be TWO TIMES the
original height of the image MINUS a little bit. How much is
a little bit? Well it depends upon the height of your image.
Start with the applet height = 2 times (height of the original) - 10,
and then play around a bit after that. (usually a little more)
In my example it was -10
Older versions of the applet were always shortened by 10, but it's
now more flexible to give better perspective on smaller images.
Below is the Lake.class file it is really small (4.8k)

First download the file and unzip it. Now all you
need to do is upload the Lake.class file, and your picture.
*NOTE* Do not put the Lake.class file or the picture in
any subfolder up on your server. (example: /images)
Instead put them in the same place as your index.html page
(no folder). Now add the HTML code to the page you want the
Lake applet on, (remember to change the HTML code to your
picture's name, and change the width and height to fit your picture).
Now upload your page and smile your done.
View your page now you should see your picture and
the lake effect reflection below it.

*NOTE* If your site is on or
You will need to visit the FAQ Help Page below
for special instructions on how to do this.
Visit Our Frequently Asked Questions Help Page
It has 30 of the most commonly asked questions that we get.

*NOTE* If you are testing it on your computer make sure
the Lake.class file, the picture, and the HTML page are all 3
in the same place and of course they can be in a subfolder
anywhere on your computer.

"Can I make the image clickable?"
Answer: Sure add this line:
<param name="href" value="nameofnewpage.html">

"Does it have any more commands it supports?"
Answer: Yes "overlay"
Go Look at my tutorial
You can use this parameter if you want a static picture to
overlay the moving image of the lake. A good idea is to use a
transparent .GIF for the overlay so that you will not hide too
much of the animation. Below is the parameter to add:
<param name="overlay" value="nameofyourpix.gif">

Also: "target"
If you are using the applet as a hyperlink then you can set this
value to specify the target frame. If you don't set a target value
then the new page appears in the current frame. This is for those
using frames. Below is the default parameter to add:
<param name="target" value="_top">

Also "rock"
If you want a rocking motion add the rock parameter.
Here is a example of it in action Rocking Action
Below is the parameter to add:
<param name="rock" value="on">

Still stuck?
Visit Our Frequently Asked Questions Help Page
It has 30 of the most commonly asked questions that we get.
and some good tips and examples.

More information and documentation can
be found at the Author's Homepage:
Java Applet Code by David Griffith
DG logo

Please feel free to link us if you get this working,
so others may find the help pages.
Or maybe sign our guestbook letting us know where to visit.
Feel free to use the logo below (right click with mouse to save)

java logo

Suggest Us To A Friend
Suggest This URL To A Friend

Lake Applet - #2
from help page
Lake Applet - #3
with Rock Parameter
Lake Applet - #4
with Overlay Tutorial
HOME USA East USA West Other Countries
Bubble Wrap Jukebox Transparency Virtual Soda Machine
Java Applets Jokes Web Space Virtual Fortune Cookie
PW WebRing Color Codes Domain Lookup Virtual Snack Machine
~Poetry~ Our Friends Free Images The Wishing Well
Our Awards About Us Search Engines Where To Get Awards
View Gbook Sign Gbook Globes Help Rings & Memberships

Is there a Applet you would like listed here?
If so send us a e-mail and tell us about it.
Sends E-mail

Web Counter
Angels have visited us

Copyright 1996 - 2001