ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM useMapÊôÐÔ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

HTML DOM useMapÊôÐÔ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:2098 :: ::

Definition and Usage
¶¨ÒåÓëÓ÷¨

The useMap property sets or returns the value of the usemap attribute of an image.
useMapÊôÐÔ¿ÉÉèÖûò·µ»ØÍ¼Æ¬usemapÊôÐÔµÄÖµ

Syntax
Óï·¨

imageObject.useMap=URL


Example
¾ÙÀý

The following example prints the value of the usemap attribute of a client-side image map:
ÏÂÃæµÄ¾ÙÀý½«·µ»Ø¿Í»§¶ËÈȵãͼÖÐ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>


ÑÝÁ·

Return the value of the usemap attribute of an image
·µ»ØÍ¼Æ¬µÄusemapÊôÐÔÖµ

ÆÀÂÛ (0) All