案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<img id="planets"
5
src="/img/eg_planets.jpg" 
6
usemap="#planetmap" />
7
8
<map name="planetmap">
9
<area
10
shape="circle"
11
coords="180,139,14"
12
href ="/example/html/venus.html"
13
target ="_blank"
14
alt="Venus" />
15
</map>
16
17
<p>usemap 属性的值等于 =
18
<script type="text/javascript">
19
x=document.getElementById('planets');
20
document.write(x.useMap);
21
</script>
22
</p>
23
24
</body>
25
</html>
26
27
28