<img src="tx_point.GIF" border="0" usemap=#cities>
<map
name="cities">
<area shape="point" coords="226,183"
HREF="http://howdyyall.com/texas/Rollptex.htm#SANANGELO">
</map>
Top
The img src="tx_point.GIF" places an
image onto the webpage. The border="0" is used to
supresses the border around the image which appears when the image is used
as a hyperlink. The usemap=#cities notifies the browser that
this image is tied to a map definition. Notice the preceding # before the name. Because the map definition is
contained within this page, quotes are not used. Quotations at this point
would cause the browser to look to another file for the map
definition.The map name="cities" establishes a map defintion
with the name "cities". The
particular map name can be almost anything, so long as the image and the
map use the same name. |
|
area is
the standard tag used to define any area shape within an map definition. Each
area must declare its shape for
proper processing by the browser. In this example we use 19 points. The coords="226,183" pinpoint in pixels, the
x,y location of a point where
x is the distance from the left
and y is the distance from the
top, in pixels.HREF="http:// ... " declares the page
that will load when the user clicks near the active point. This page can be at
another site (as in the example), another page at the current site
(HREF="pagetwo.htm"), or a defined anchor within the current
page (HREF=#section02), although it is rare that
point would be used for navigation within the same page. Points are
normally used to navigate through geographic based web
sites.