javascript A coords
coords | Firefox/Netscape/NN 6 IE 6 Chrome/Safari/DOM 1 |
Read/Write | |
Defines the outline of an area to be associated with a particular link or scripted action. This property is a member of the a object, but really belongs to the area object, which inherits the properties of the a object. Coordinate values are entered as a comma-delimited list. If hotspots of two areas should overlap, the area that is defined earlier in the code takes precedence. |
|
Example | |
document.getElementById("mapArea2").coords = "25, 5, 50, 70"; |
|
Value | |
Each coordinate is a length value, but the number of coordinates and their order depend on the shape specified by the shape attribute, which may optionally be associated with the element. For shape="rect", there are four coordinates (left, top, right, bottom); for shape="circle" there are three coordinates (center-x, center-y, radius); for shape="poly" there are two coordinate values for each point that defines the shape of the polygon. |
|
Default | |
None. |
Powered by Linode.