function init(evt){
var svgdoc = evt.target.ownerDocument;
var newMenuRoot1=parseXML(printNode(svgdoc.getElementById('Menu1')),contextMenu);
contextMenu.replaceChild(newMenuRoot1.firstChild,contextMenu.firstChild);
}
这个方法是 svg中 ,动态添加右键菜单的方法, 在 IE中是OK的, 但是,在Firfox 和 goole 中,就不行了, 谁能告诉我Why
感激不尽...
var svgdoc = evt.target.ownerDocument;
var newMenuRoot1=parseXML(printNode(svgdoc.getElementById('Menu1')),contextMenu);
contextMenu.replaceChild(newMenuRoot1.firstChild,contextMenu.firstChild);
}
这个方法是 svg中 ,动态添加右键菜单的方法, 在 IE中是OK的, 但是,在Firfox 和 goole 中,就不行了, 谁能告诉我Why
感激不尽...
解决方案 »
- Ext写得js文件怎么运行 web工程下 100分!!!!见下面详解
- 如何使用js获取样式名称,然后对设置了该样式的标签进行设置
- js彈出新窗口問題
- 批量设定input的属性值,比如onclick
- document.write("<iframe .. 的问题,请教
- 鄙人想换份工作,哪位仁兄有好的信息--人在上海,顺便散分;
- 使用javascript子程序实现marquee的走与停
- 在一个输入框里插入一个张图片,并且显示的是图片,而不是html代码?
- HTTP ERROR 500 Problem accessing /web/UpdatePwdAccessAction.action. Reason:
- jquery用append添加了js代码碰到的问题
- $.getJson 我想跨域。。
- 弱弱的问一句,,用jqurey.js会耗费多大流量?
在 google中, 是 printNode is not defined 同时, contexMenu 也不支持, 谁能帮我看下.
IE9照样NO OK。
你那个 SVG 右键菜单的问题解决了吗?