确定一个区域的形状
- <html>
- <body>
- <img src="/i/eg_planets.jpg"
- usemap="#planetmap" />
- <map name="planetmap">
- <area id="venus" shape="circle"
- coords="180,139,14"
- alt="Venus"
- href="/example/hdom/venus.html" />
- </map>
- <p>Venus area 的 shape 属性是:
- <script type="text/javascript">
- x=document.getElementById("venus");
- document.write(x.shape);
- </script>
- </p>
- </body>
- </html>