案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<img src="/img/eg_planets.jpg"
6
border="0" usemap="#planetmap"
7
alt="Planets" />
8
9
<map name="planetmap" id="planetmap">
10
11
<area id="sun" shape="rect" coords="0,0,110,260"
12
href ="/example/html/sun.html" target ="_blank"
13
title="Sun" />
14
15
</map>
16
17
<p>太阳的咨询性标题是(请把鼠标移动到太阳上):
18
<script>
19
var x=document.getElementById('sun');
20
document.write(x.title);
21
</script>
22
</p>
23
24
</body>
25
</html>