i need someone Explain me how coords code works
i tried to understand what is that by search and i find these
any way my problem is i have an mapped image with a little wrong Positions
the code of what i have is like this
i tried to understand what is that by search and i find these
any way my problem is i have an mapped image with a little wrong Positions
the code of what i have is like this
- Code:
 <area alt="" coords="67, 19, 85, 34"
- what i find:
- RectangleThis expects four coordinates. The horizontal position of the top-left corner, the vertical position (from the top of the image) of the top-left corner, the horizontal position of the bottom-right corner and the vertical position of the bottom-right corner. An example would be:
- Code:
shape="rect" coords="10,20,75,40"
- Code:
shape="circle" coords="50,80,20"
- Code:
shape="poly" coords="217,305,218,306,218,306,228,316,243,316,243,325,229,325,229,322,217,310"
If any of these areas overlap, the one that is defined first will be used in the places where they overlap. There is also a "default" shape, which covers the entire image, and does not need the coords attribute. However, I advise you not to use this shape, as it makes it impossible for a user to know when they are over a proper area, since the mouse cursor will always show as an area link.
It is possible to use an AREA to puch a hole out of another one. Instead of giving it an HREF attribute, set the NOHREF attribute (without giving it a value). Then make sure that it appears before the other area in the source code, and it will be placed on top of it, as a dead space where the other area will not react.
Remember that every area must have an ALT attribute giving the alternative text to display. For areas with no HREF, it is best to provide an empty ALT attribute. If you use A elements instead, these cannot have an ALT attribute, but browsers can use their contents instead. I also recommend giving every area a TITLE attribute, that most browsers will display as a tooltip when hovering the area. This makes it much more easy to see what the area represents.
Last edited by Michael_vx on July 10th 2015, 2:04 am; edited 1 time in total