HTML DOM useMap ÊôÐÔ
¶¨ÒåºÍÓ÷¨
useMap ÊôÐÔ¿ÉÉèÖûò·µ»ØÍ¼ÏñµÄ usemap ÊôÐÔµÄÖµ¡£
Óï·¨
imageObject.useMap=URL
ʵÀý
ÏÂÃæµÄÀý×Ó¿ÉÊä³ö¿Í»§¶ËͼÏñÓ³ÉäµÄ usemap ÊôÐÔµÄÖµ£º
<html>
<body>
<img id="planets" src="planets.gif"
width="145" height="126"
usemap="#planetmap" />
<map name="planetmap">
<area id="venus" shape="circle"
coords="124,58,8"
alt="The planet Venus"
href="venus.htm" />
</map>
<p>The value of the usemap attribute=
<script type="text/javascript">
x=document.getElementById('planets');
document.write(x.useMap
);
</script>
</p>
</body>
</html>