eWebEditor IE7 所有按钮失效,弹出JS错误
来源:互联网 发布:汉堡王网络订餐 编辑:程序博客网 时间:2024/05/16 04:04
在网上找了很多这方面的资料,都是说兼容问题,在editor.js文件里面修改一个地方,让它兼容IE7和IE8,网上代码如下:
把if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()");改为if(navigator.appVersion.match(/8./i)=='8.' || navigator.appVersion.match(/7./i)=='7.'){if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)"); //IE8 or IE7} else {if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); //IE6}结果测试,错误依旧存在,调试发现,其实在IE7情况下,用onclick还是不行,还是得用anonymous,所以我改变原来JS为:
if(navigator.appVersion.match(/MSIE (8)\./i)!=null) { if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)"); } else { if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); }测试结果:IE6通过,IE7通过,IE8通过。
- eWebEditor IE7 所有按钮失效,弹出JS错误
- eWebEditor在IE8,IE7下所有按钮无效之解决办法
- eWebEditor在IE8,IE7下所有按钮无效之解决办法
- eWebEditor在IE8,IE7下所有按钮无效之解决办法
- 【JavaScript】eWebEditor 辑器按钮失效 IE8下完美解决
- eWebEditor在ie9下按钮功能失效的解决办法
- eWebEditor在ie9下按钮功能失效的解决办法;
- eWebEditor弹出窗口不能完整显示确定按钮问题
- eWebEditor弹出窗口不能完整显示确定按钮问题
- eWebEditor在IE8下所有按钮都无效
- ewebeditor在ie8下所有按钮点击无效解决方案
- 彻底解决IE7、IE8、IE9下eWebEditor在线编辑器上按钮无效的解决方法
- IE7 自动弹出下拉菜单错误
- 解决EWEBEDITOR老版本在IE新版本下按钮失效问题一劳永逸的办法
- eWebEditor 错误 (不支持 ie7 ie8 maxthon 及其它浏览器)终极办法
- ie7 ie8 maxthon等浏览器下eWebEditor 错误的终极解决办法
- 委托时间丢失,所有按钮失效
- js手机弹出按钮 弧形按钮
- 使用MFC操作EXCEL文件
- 算法导论16-1
- OpenCV读取AVI文件
- android opengl 画三角形
- Python中的SET集合操作
- eWebEditor IE7 所有按钮失效,弹出JS错误
- 分享一些OpenCV实现立体视觉的经验
- Java继承机制中,关于构造器的重写
- 一般企业网站建设常用到的功能模块介绍
- 在 iPhone 静音情况下,播放 MP3 文件的代码
- 为钱编程 vs 为兴趣编程
- python卡死x-window解决办法
- web.config详解
- strlen与sizeof的联系与区别(转载)