ThePoolMenuApplet
LICENSE
This license ("License") contains rights and restrictions associated with use of the accompanying software. Read the License carefully before utilizing the software. By using the software you agree to be bound by the terms and conditions of this license.
Congratulations...
...upon choosing this product. Not only will it improve your health, and enhance your general spirituality, it will also clean the bath, cook you breakfast, take care of the children, end armed conflict and invigorate the look of your web page.
Introduction
You should be careful to check that your unzipping program has named the files correctly. Some DOS programs will name according to the old 8.3 format, rename .class files "*.cla".
Paying for the Applet
There is NOTHING to pay. The applet is completely free. However, if you make a donation ($5 - $10?) to
Using PoolMenu in a web page...
To include PoolMenu in a web page, you should copy the PoolMenu.class Pool.class ImageMap.class file into the same directory as the web page and then insert an <APPLET...> tag into the page, e.g.
<APPLET CODE="PoolMenu" WIDTH=226 HEIGHT=125> <PARAM NAME=image VALUE="poolmenu.gif"> Put something here for browsers that don't use Java. </APPLET> |
Parameters that can be passed to PoolMenu
The following parameters can be passed to PoolMenu:
The IMAGE parameter
JPG or GIF file that you want to reflect.
<applet code="PoolMenu" width=226 height=125> <param name=image value=poolmenu.gif> </applet> |
The
HREF parameter
The URL to link to when the applet is clicked.
<applet code="PoolMenu" width=226 height=125> <param name=image value=poolmenu.gif> <param name=href value=http://www.demon.co.uk/davidg/spigots.htm> </applet> |
The
TARGET parameter
This is the name of the frame you want any linked page to appear in.
<applet code="PoolMenu" width=226 height=125> <param name=image value=poolmenu.gif> <param name=href value="http://www.microsoft.com"> <param name=target value="newframe"> </applet> |
The
MAP parameter
The allows the applet to use an imagemap from the current page.
<applet code="PoolMenu" width=226 height=125> <param name=image value=poolmenu.gif> <param name=map value="MenuMap"> <param name=target value="newframe"> </applet> <MAP NAME="MenuMap"> <AREA SHAPE="RECT" COORDS="0, 0, 100, 129" href="http://www.demon.co.uk/davidg/spigots.htm" alt="Clicking on the left will open up the spigots page"> <AREA SHAPE="RECT" COORDS="101, 0, 250, 129" href="http://127.0.0.1/davidg/lake.htm" alt="Clicking on the right will open up the lake page"> </MAP> |
I'd suggest you put the class file in the same directory as the page on which it will appear. If you want to move it elsewhere then use the "CODEBASE" option to point to the appropriate directory.
Some implementations of Java will not allow you to put the .class file in one subdirectory and the image file in another. If the try it might cause a security exception.
Troubleshooting
Why won't the applet work off my hard disk?
Some web browsers have trouble opening applets straight from a hard disk. I have noticed this happen with Internet Explorer 3 and Netscape 4. Once you have loaded the class file and the web page onto your web site you should find it works OK.
Why does my web page say "Class Format Error"?
Class files are binary files, just like image files are. Binary files contain more information than text (also known as ASCII) files do. If you transfer class files as if they were ASCII files then they will lose this extra information and will become corrupted. How do you transfer class files as binary files? You should transfer them in the same way that you transfer image files.
Why does my web page say "Class Not Found"?
This is a very common problem. It may be because of one of the following:
If you use this applet then it would be nice if you gave me a link by copying the image:
(this is the file "dglogo.gif" in the .zip archive) into the same directory as your web page and then pasting the following into your page.
<a href="http://www.demon.co.uk/davidg/spigots.htm" target="_top">
<img src="dglogo.gif"
width=88 height=31 border=0></a>
|
It will put a little button on your page that will link through to my Java Spigots page.
It is only a request: feel free to omit it.
Transferring files
Remember that if you are transferring the .class file to another machine with FTP, you should set the 'binary' mode on. Failure to do so will corrupt the file and give rise to a "Class Format" error.
Contacting Me
If you still have trouble getting the applet to work and you have tried all of the possible solutions listed above, then feel to contact me, remembering to include:
| 1 | . | A precise description of the problem (do you just get a grey rectangle, or an error message etc. etc.) |
| 2 | . | The URL of the page containing the applet (that's the actual page - not just the front page on your site) |
These two pieces of information will make it a lot easier for me to solve the problem. I cannot guarantee that I will be able to respond to all messages (there's only so many hours in the day...) but sending the URL of a page that doesn't work will greatly increase the chances of getting an answer.
Remember to keep a look out at my web site for new applets.
11/04/1999
| Created in Glorious Polyphonic HPL Last updated: Sunday 11 April 1999 |