This site hosted by Free.ProHosting.com
Google
Expanding Head

Image Map Tool Guide


Image Map

map source ( mouseovers removed ):

<MAP NAME="map1">
<AREA SHAPE=RECT COORDS="128,4,180,61" HREF="soundfx/glimmer.rmf">
<AREA SHAPE=RECT COORDS="144,149,252,193" HREF="soundfx/subtle.rmf">
<AREA SHAPE=DEFAULT HREF="sound/subtle.rmf">
</MAP>
<IMG USEMAP="#map1" SRC="images/jadew.gif" width="256" height="251" ALT="Image Map" ALIGN=top>

General
   The above image map illustrates the typical output of the Image Map Tool. WebTV can only use square or rectangular shapes for the map areas on the image. 1. WebTV's cursor will highlight only the areas of the image map that are defined, but a computer's cursor can be placed over and clicked on any point of the image map. The default tag is used to catch these clicks and it can contain an event and/or link.

   Each link area is made up of two sets of x y coordinates. The first set of x y coordinates denote the uppermost left corner of the mapped area. The second set of x y coordinates denote the bottom right corner of the mapped area. The first map area in the example image above is composed of the coordinates 128,4,180,61 and the second map area is composed of the coordinates 144,149,252,193.

   The Image Map Tool will allow you to generate your coordinates, add the link URL's, add the image url and dimensions, and output the resulting image map with the codes in a text area to copy.

Instructions
   1. The first thing you need is an image. If you load the Image Map Tool directly from an image it will be detected and loaded. If you arrive from a non-image file you will be prompted for an image url.
   When the image is loaded it will be "clickable". Move the cursor over the image and point to the vertices 2 you want for the top left corner of the rectangle you are making and hit your return key. This will generate the first x y set in the text area below the image. Next, move the cursor over the image and select the bottom right corner vertices of the rectangle for your link area and hit the return key ( these values will always be greater than the first ). This completes the coordinates for the link area. Subsequent link areas are make following the same steps.

   2. When you have generated your x y coordinates for each area that you want to map you are ready to complete your map tags. Select "Code Generator".
   At the bottom of the page a text area will load with three options below it. Highlight "Start" and hit return, this writes the map opening tags. Next, highlight "Gen Link" and hit return, you will be prompted for a URL for the link, this is optional at the time of making your map and can be added later. Hit return and you will be prompted for the first set of x y coordinates. Enter the first set separated by a comma ( example 100,150 ). Hit return and you will be prompted for the second set of coordinates, enter them separated by a comma, and hit return. Each set for each area your are mapping on the image is entered this way. To start a second area select "Gen Link" and repeat the process following the prompts.

   3. The final step is highlighting "Close" and hitting return. You will be prompted for a default URL, this is optional at the time of generating the code and can be added later. The script will then add the image url, height, width, map closing tags, and display the image map with the codes ready to copy.

   If you would like to practice with the above image click here to begin.




Expanding Head Links

[ Home | Editor 1 2 3 4 5 | Search | Browser Info | Misc. Scripts |

| HTML to JS | Tips and Tags | F8 Key | F9 Key | Color Table |

| I-Map | Browser History | CSS Position | Logins 1 2 ]


© 1998/2001 rwedge@webtv.net
All Rights Reserved



1 Computer's support circles and polygon shapes.
example: <area shape=circle coords="128,120,50" href="http://"> Consisting of three coordinates - (x, y) r - where x,y is the center and r the radus.
<area shape=poly coords="100,20,140,10,.....140,40,100,20" href="http://">. Consisting of several pairs of x y coordinates depending on the complexity of the shape ( up to 100 coordinate pairs ).


2 The point of intersection of the lateral x and vertical y. Measured in pixels from the top left corner of the image.