View Full Version : image mapping


rajiVmirage
07-22-2003, 05:51 PM
This is the code i use for my image map:

<MAP NAME="MyMap">

<AREA SHAPE="Rect" HREF="index.htm" COORDS="30,60 127,59 127,72 30,73">

<IMG USEMAP="#MyMap" SRC="imagemap.gif" BORDER="0">



</MAP>



However, It only links the coordinates...i want it to fill in the whole shape with a link, how do I do that? (look here- http://www.geocities.com/rajivmirage/blah.html)


mucho thanks! -Viraj

MaGiCSuN
07-22-2003, 06:11 PM
<IMG USEMAP="#MyMap" SRC="imagemap.gif" BORDER="0">
<MAP NAME="MyMap">

<AREA SHAPE="Rect" HREF="index.htm" COORDS="30,60,127,59,127,72,30,73">

</MAP>

you have tooo many coords for rect... i only have 4. a rect only has 4 corners. but anywayz, try the one above if not you should map your image over again with your program.

for code above make sure you past "> behind the rest, and you take out the space between COORDS=" and 30

Love,
Mirna

Dude128
07-22-2003, 06:26 PM
for a rectangle, you should have two coordinates- the upper left corner, and the lower right corner.

pb&j
07-22-2003, 11:53 PM
if you are wanting to keep all of those coordinates, perhaps you meant to use the shape called POLY instead of RECT.