ImageMap: Blue Bar
You hit the BLUE bar.
This section shows how a server side area map would be defined for an image. Server side image maps still serve some purposes for specialized applications. However, these have been largely replaced with client side mapping.
As you can see below, each entry (except the last one) is made of three parts:
The clickable area or shape can be a circle, a rectangle (rect), or a polygon (poly).
The web address or Universal Resource Location (URL) to go to when clicked.
The image coordinates that define the size of the shape. You can use some image editors or an image mapping program to find the coordinates.
The default entry defines what address is to be loaded should an area be clicked that is not defined.
This is what a .MAP file looks like:
| circle http://www.melvinwallerjr.com/tutorial/imagemaps/circle.php 51,116 129,194 rect http://www.melvinwallerjr.com/tutorial/imagemaps/bar.php 107,68 338,118 rect http://www.melvinwallerjr.com/tutorial/imagemaps/square.php 12,26 98,112 poly http://www.melvinwallerjr.com/tutorial/imagemaps/triangle.php 147,198 204,127 278,198 147,198 default http://www.melvinwallerjr.com/tutorial/imagemaps/ |
[Updated: Sunday, November 18, 2007]
