HTML DOM coords ÊôÐÔ

¶¨ÒåºÍÓ÷¨

coords ÊôÐÔ¿ÉÉèÖûò·µ»ØÍ¼ÏñÓ³ÉäÖÐij¸ö¿Éµã»÷ÇøÓòµÄ×ø±ê¡£

Óï·¨

areaObject.coords=coordinates

ʵÀý

ÏÂÃæµÄÀý×Ó¿É·µ»ØÍ¼ÏñÓ³ÉäÖÐij¸ö¿Éµã»÷ÇøÓòµÄ×ø±ê£º

<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 coordinates:
<script type="text/javascript">
x=document.getElementById("venus");
document.write(x.coords);
</script>
</p>

</body>
</html>
VUE