try
document.getElementByName("Map")[0].removeNode()

解决方案 »

  1.   

    try
    document.getElementByName("MetroMap").useMap=""
    注意大小写
      

  2.   

    这样也行<img src="1.jpg" id="MetroMap" alt="" usemap="#Map" border="0"/> 上面带有一些热区: <map name="Map"> 
    <area shape="rect" coords="0,0,100,100" href="http://www.csdn.net"/>
    <area shape="rect" coords="434,-1,483,26" href="#"/> 
    <area shape="rect" coords="537,0,587,24" href="#"/> 
    <area shape="rect" coords="487,1,526,26" href="#"/> 
    </map>
    <script language="javascript">
    //document.getElementById("MetroMap").removeAttribute("useMap");
    </script>
      

  3.   

    这个该是:
    document.getElementById("MetroMap").useMap="" 
      

  4.   

    假如我要更换热区行不行<img src="../../Images/950x555.gif" id="MetroMap" alt="" usemap="#Map1" border="0"/> 上面带有一些热区: <map name="Map1"> 
    <area shape="rect" coords="434,-1,483,26" href="#"/> 
    <area shape="rect" coords="537,0,587,24" href="#"/> 
    ... 
    ... 
    <area shape="rect" coords="487,1,526,26" href="#"/> <map name="Map2"> 
    <area shape="rect" coords="434,-1,483,26" href="#"/> 
    <area shape="rect" coords="537,0,587,24" href="#"/> 
    ... 
    ... 
    <area shape="rect" coords="487,1,526,26" href="#"/> 我现在加一句:
    document.getElementById("MetroMap").useMap="#Map2"
    请问这样可以实现吗?
      

  5.   

    document.getElementById("MetroMap").useMap=""