如何使用Js消去图片热区 trydocument.getElementByName("Map")[0].removeNode() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 trydocument.getElementByName("MetroMap").useMap=""注意大小写 这样也行<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> 这个该是:document.getElementById("MetroMap").useMap="" 假如我要更换热区行不行<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"请问这样可以实现吗? document.getElementById("MetroMap").useMap="" jquery uploadify 插件回调函数返回自定义数据问题 document.getElementById("tool").getElementsByTagName("li") 关于JavaScript中多层单继承实现之中的一点小疑问!!! 如何抓取网站用js输出的内容 alert('选择')出现乱码 Google可拖拉的层是怎么做的? 在线编辑器生成的内容如何输出?拜托~~~ 在线等待表格问题 既然button可以没有name,那么我该怎么得到这个button呢? 一段javascript脚本的解析 DOM树中取值的问题 新手幼稚问题?
document.getElementByName("MetroMap").useMap=""
注意大小写
<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>
document.getElementById("MetroMap").useMap=""
<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"
请问这样可以实现吗?