案例: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 id="venus" shape="circle"
10
coords="180,139,14"
11
href ="/example/html/venus.html"
12
target ="_blank"
13
title="Venus" />
14
</map>
15
</map>
16
17
<p>Venus 的 title(即把鼠标移动到火星上显示的文本)是:
18
<script type="text/javascript">
19
x=document.getElementById('venus')
20
document.write(x.title)
21
</script>
22
</p>
23
24
</body>
25
</html>
26