BootWiki教程网
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>BootWiki 教程网</title> <script> function writeText(txt){ document.getElementById("desc").innerHTML=txt; } </script> </head> <body> <img alt="Planets" height ="126" src ="planets.gif" usemap="#planetmap" width ="145" /> <map name="planetmap"> <area alt="Sun" coords ="0,0,82,126" href ="sun.htm" onmouseover="writeText('太阳和气体巨星类似木星是太阳系中最大的物体。')" shape ="rect" target ="_blank" /> <area alt="Mercury" coords ="90,58,3" href ="mercur.htm" onmouseover="writeText('从地球上很难研究水星,因为它太接近太阳。')" shape ="circle" target ="_blank" /> <area coords ="124,58,8" onmouseover="writeText('至到1960年,金星经常被认为是地球的孪生妹妹,因为金星是最靠近我们的行星,并且两个行星有很多相似的特点。')" shape ="circle" t')" href ="venus.htm" target ="_blank" alt="Venus" /> </map> <p id="desc">鼠标在太阳和星星上移动,可以看到不同的描述。</p> </body> </html>
运行结果