BOM

  ismap被称为服务器端的图像映射

  usemap被称为客户端的图像映射

  <map>中的nameid由于浏览器不同,usemap属性接收二者其一的值,所以应同时向<map>中添加idname属性。

如:

<map name="Map" id="Map">

<area shape="rect" coords="118,192,203,249" href="http://joeblade.com" alt="" />

<area shape="circle" coords="52,76,39" href="http://joeblade.com" alt="" />

<area shape="poly" coords="159,145,115,96,115,39,160,21,205,40,206,103" href="http://joeblade.com" alt="" />

  </map>

  <img src="imagemap.jpg" alt="" width="300" height="272" usemap="#Map" ismap="ismap" />

posted on 2009-09-26 15:05  五味坛  阅读(1404)  评论(0编辑  收藏  举报