document.getElementsById("map").appendChild(objArea);
==>objMap.appendChild(objArea);
==>objMap.appendChild(objArea);
解决方案 »
- 点击编辑 如何把内容输入到指定的text里面
- 关于marquee无缝循环
- svg中js的问题。
- 风声(www.fonshen.com)源代码廉价出售,联系QQ:150227334
- 客户的刁难问题,请教大家!
- 关于htmlarea的使用
- 如何使一个页面层慢慢收缩,最后整个层消失?
- javascript 打印网页中的一个TABLE
- 请问用IE进行页面打印时,怎样消除顶部和尾部的系统信息?
- window.showModalDialog返回值是XML格式,如何用js获取兰花两字,格式如下
- 双向选择器取不到值
- 有很多 radio,checkbox等,我能不能一次性地设置 onfocus=this.blur(),就像CSS那样,而不用在每一个radio设置
</div>
<script language=javascript>
var objMap = document.createElement("map");
objMap.setAttribute("name","map");
objMap.setAttribute("id","map");
document.getElementById("ContentImage").appendChild(objMap);alert(document.getElementById("ContentImage").innerHTML)
objArea = document.createElement("Area");
objArea.setAttribute("id","strID");
objArea.setAttribute("name","strName");
objArea.setAttribute("coords","strcoords");
objArea.setAttribute("shape","strShape");
objArea.setAttribute("href","strHref");
document.getElementById("map").appendChild(objArea);
alert(document.getElementById("ContentImage").innerHTML)
</script>