<APPLET CODE="puzzle.class" CODEBASE="./" WIDTH="380" HEIGHT="400"> <PARAM NAME="Image" VALUE="/puzzle/images/rapa.jpg"> <PARAM NAME="rows" VALUE="3"> <PARAM NAME="cols" VALUE="3"> <PARAM NAME="maxPieces" VALUE="25"> <PARAM NAME="result" VALUE="popup"> Alternative Html code to be displayed if browser's not Java capable </APPLET>the parameter
result
(new in 1.0.10) controls the behavior of
Congratulation Message. It can be set to three different values:
none
: a message is printed in the status line of the
applet (right below the image)
popup
: a window pops up which shows the message
root
: Congratulation is printed inside the
root window of the applet, thus overwriting a part of the image.
choose the WIDTH
tag about 80 pixels wider then your image,
the HEIGHT
tag should be about 100 pixels larger (depending
on the window-system you are using).
images are searched for from the codebase (getCodeBase())
result
which controls the behaviour
of the Congratulation message (see Usage)
maxPieces
to set the maximum number
of pieces one can set
SansSerif
instead of explicit Font Names)
The java Applet was developed under Linux (Kernel 2.0.35) running the GNU port of the Java virtual machine (Java 1.1.6). Appletviewer and Netscape Communicator 4.06 had no troubles with the applet. To compile the stuff on my slow pentium, I used the very fast compiler from IBM, jikes (free as well).
Update Image
before pressing
Shuffle
, the number will stay the same, though it says
more in the display at the bottom. I think it's handy to keep the
value there, if you just forgot to update..
Tar-gzipped Version | Zipped Version |
---|---|
Puzzle.tar.gz | Puzzle.zip |
Those of you, who have troubles with GZIP or TAR archives can view our directory listing. Please keep the source code included --- it's not because it is written so perfectly, but maybe someone is interested..
back to our Puzzle-page