简单教程
提交运行
代码编辑器:
<img src ="/static/i/html/planets.gif" width="145" height="126" alt="Planets" usemap ="#planetmap" /> <map name ="planetmap"> <area id="venus" shape="circle" coords ="124,58,8" title="Venus" href ="/static/media/html/venus.html" /> </map> <p>金星区域的标题 (鼠标经过金星): <script> var x=document.getElementById('venus'); document.write(x.title); </script> </p>
运行结果: