ProMap: Example #5

A smaller example in which only one Area is defined -- the entire image. Rather than an imagemap, this is simply a button (although this example doesn't link anywhere, having no URL parameter). You might use this just once for effect, or place several similar ProMap applets in a row or column. (Please read the Notes page for some advice on grayscaling the entire image.)

Because the whole image consists of one Area, PaintMessages cannot be used: there's no space above or below the Area to paint the message.

Note that Java counts dimensions from zero. To specify the entire applet as an Area, the first two figures will be 0, and the remaining two figures will be the width and height of the applet, minus 1.


<APPLET CODE="ryProMap.class" ARCHIVE="ProMap.jar" WIDTH=240 HEIGHT=180>
<param name=CabBase value="ProMap.cab">
<param name=Copyright value="ProMap (c) 1997 Cool Focus [www.coolfocus.com]">
<param name=BaseImage value="Adamsmall.jpg">
<param name=GrayscaleBaseImage value="yes"> The BaseImage is grayscaled
<param name=PaintMessages value="no"> There is no space for Messages to be painted
<param name=Area1 value="0,0,239,179"> Specifies the entire applet width and height as the active Area
<param name=FilterEdges1 value="7"> Increases the size of the bevelled edge from the default 5
<param name=Message1 value="A whole-image example, with a grayscaled BaseImage and wider bevelled edge">
<param name=DefaultSounds value="hotswipe.au,out.au">
</APPLET>