Index: ssts-web/src/main/webapp/disinfectsystem/print/LodopFuncs.js =================================================================== diff -u -r12331 -r15212 --- ssts-web/src/main/webapp/disinfectsystem/print/LodopFuncs.js (.../LodopFuncs.js) (revision 12331) +++ ssts-web/src/main/webapp/disinfectsystem/print/LodopFuncs.js (.../LodopFuncs.js) (revision 15212) @@ -14,7 +14,16 @@ installHtml += "64位浏览器安装"; installHtml += ""; try{ - if (navigator.appVersion.indexOf("MSIE")>=0) LODOP=oOBJECT; + //=====判断浏览器类型:=============== + var isIE = (navigator.userAgent.indexOf('MSIE')>=0) || (navigator.userAgent.indexOf('Trident')>=0); + var is64IE = isIE && (navigator.userAgent.indexOf('x64')>=0); + //=====如果页面有Lodop就直接使用,没有则新建:========== + if (oOBJECT!=undefined || oEMBED!=undefined) { + if (isIE) + LODOP=oOBJECT; + else + LODOP=oEMBED; + } if ((LODOP==null)||(typeof(LODOP.VERSION)=="undefined")) { if (navigator.userAgent.indexOf('Firefox')>=0)