HTML DOM shape Property
Complete Area Object Reference
Definition and Usage
The shape property sets or returns the shape of an area in an image-map.
Syntax
areaObject.shape=RECT|CIRCLE|POLY|DEFAULT
|
Example
The following example returns the shape of the "Venus" area in the image-map:
<html>
<body>
<img src="planets.gif"
width="145" height="126"
usemap="#planetmap" />
<map name="planetmap">
<area id="venus" shape="circle"
coords="124,58,8"
alt="Venus"
href="venus.htm" />
</map>
<p>Venus shape:
<script type="text/javascript">
x=document.getElementById("venus");
document.write(x.shape);
</script>
</p>
</body>
</html>
|
Try-It-Yourself Demos
Return
the shape of an area in an image-map
Complete Area Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|