Javascript Reference
Categories: AREA

javascript AREA coords

@March 15, 2008, 1:22 a.m.
coords Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

Defines the outline of the area to be associated with a particular link or scripted action. 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 pixel 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.