Client Side Image Map Example

Image maps create areas (rectangular areas being the most accepted) which can be linked to other pages or sites.

The use of the MAP and AREA tags define the areas in the image. You add usemap="#areaname" parameter to your IMG tag to apply an image map to it. Image map format is described below.

You can create an image map by hand by counting pixels, or use one of the many tools available on the net to create the maps.

Mapedit, from Boutell is a WYSIWYG editor for client-side imagemaps. Get the evaluation version of Mapedit here. This tool will update the IMG tag and add the appropriate MAP and AREA tags in your HTML code automatically.

Another map editor, which is freeware, is MapMaker 32 from Martin E. Haring.
Get a copy at: MapMaker32 version 2.0b
This program creates the MAP tags for your image, which you paste into your HTML.


IMAGE MAP EXAMPLE

Map to color pages Place the cursor over a color and click the mouse to select which color to go to.

The HTML (created by Mapedit) to map the image above is:

<map name="area">
<area shape="rect" coords="123,8,171,57" href="blue.htm">
<area shape="circle" coords="94,73,25" href="yellow.htm">
<area shape="polygon" coords="9,44,44,9,79,44,9,44" href="red.htm">
<area shape="default" nohref>
</map>

Here is the image tag for the image shown above has a pointer to the image map in the usemap parameter (usemap="#area"):

<IMG SRC="cube.gif" WIDTH="70" HEIGHT="70" BORDER="0" ALT="Map to color pages" usemap="#area" ALIGN=top>

 

 


NOTE: If you came here from the Web Tutorial, a new browser window was be opened for viewing this page. To return, you can just select the other browser (from the task bar in Windows 95 or click your mouse somewhere on its window). You can also close (or File, Exit) from this window when done.

Copyright © 1998 Jim Hanson Last update: Jan. 7, 1998

This Page made with Ray Bradbury's Homesite 2.5

.

This page hosted by GEOCITIES Get your own Free Home
1