The book Java Web Magic
shows you how to find and modify a variety of fun and useful
applets. Here's an example.
|
|
Roll the cursor over
the stoplight. Then click on the image and hold the mouse
down. Release it. Now move the cursor off the image.
Here is the script
for the applet as it appears in the HTML document for this
page:
- <APPLET CODE="HiBut.class" WIDTH=28
HEIGHT=65 ALIGN=bottom>
- <param name=normal value="javaImages/redlight.gif">
- <param name=highlight value="javaImages/redlight.gif">
- <param name=select value="javaImages/greenlight.gif">
- <param name=active value="javaImages/greenlight.gif">
- <param name=normalsound value="javaSounds/GlassBreak.au">
- <param name=highlightsound value="javaSounds/CarHorn.au">
- <param name=selectsound value="javaSounds/TruckHorn.au">
- <param name=activesound value="javaSounds/Screech.au">
- <param name=highlightsoundloop value=yes>
- </APPLET>
-
The class file defines
what the applet does. You cannot change the it unless you
are a programmer. But you can modify the parameters, changing
the images it displays, changing the sound files you want
it to play, changing the sequence of events. The class files
and paramters for every applet are different. Here's
another example.
You will find a gallery of applets
featured in the book on these pages. Refer to the book for
an explanation of how each applet works, or visit the web
site for the applet. You will find a URL for each applet at
the top of the page. Most of these applets are free. A few
require payment of a small licensing fee.
I have also provided a list of some
useful software programs found
on the book's CD-ROM.