// 请勿修改,否则可能出错 var userAgent = navigator.userAgent, rMsie = /(msie\s|trident.*rv:)([\w.]+)/, rFirefox = /(firefox)\/([\w.]+)/, rOpera = /(opera).+version\/([\w.]+)/, rChrome = /(chrome)\/([\w.]+)/, rSafari = /version\/([\w.]+).*(safari)/; var browser; var version; var ua = userAgent.toLowerCase(); function uaMatch(ua) { var match = rMsie.exec(ua); if (match != null) { return { browser : "IE", version : match[2] || "0" }; } var match = rFirefox.exec(ua); if (match != null) { return { browser : match[1] || "", version : match[2] || "0" }; } var match = rOpera.exec(ua); if (match != null) { return { browser : match[1] || "", version : match[2] || "0" }; } var match = rChrome.exec(ua); if (match != null) { return { browser : match[1] || "", version : match[2] || "0" }; } var match = rSafari.exec(ua); if (match != null) { return { browser : match[2] || "", version : match[1] || "0" }; } if (match != null) { return { browser : "", version : "0" }; } } var browserMatch = uaMatch(userAgent.toLowerCase()); if (browserMatch.browser) { browser = browserMatch.browser; version = browserMatch.version; } //document.write(browser); /* 谷歌浏览器事件接管 */ /* function OnComplete2(type,code,html) { alert(type); alert(code); alert(html); alert("SaveToURL成功回调"); } function OnComplete(type,code,html) { //alert(type); //alert(code); //alert(html); //alert("BeginOpenFromURL成功回调"); } function publishashtml(type,code,html){ //alert(html); //alert("Onpublishashtmltourl成功回调"); } function publishaspdf(type,code,html){ //alert(html); //alert("Onpublishaspdftourl成功回调"); } function saveasotherurl(type,code,html){ //alert(html); //alert("SaveAsOtherformattourl成功回调"); } function dowebget(type,code,html){ //alert(html); //alert("OnDoWebGet成功回调"); } function webExecute(type,code,html){ //alert(html); //alert("OnDoWebExecute成功回调"); } function webExecute2(type,code,html){ //alert(html); //alert("OnDoWebExecute2成功回调"); }*/ /*function CustomMenuCmd(menuPos,submenuPos,subsubmenuPos,menuCaption,menuID){ alert("第" + menuPos +","+ submenuPos +","+ subsubmenuPos +"个菜单项,menuID="+menuID+",菜单标题为\""+menuCaption+"\"的命令被执行."); }*/ var classidx64="A64E3073-2016-4baf-A89D-FFE1FAA10EE0"; //var classid = "A39F1330-3322-4a1d-9BF0-0BA2BB90E970"; var classid="A64E3073-2016-4baf-A89D-FFE1FAA10EC0"; var codebase="officecontrol/OfficeControl.cab#version=5,0,4,0"; var codebase64="officecontrol/OfficeControlx64.cab#version=5,0,4,0"; if (browser=="IE"){ //alert(window.navigator.platform); if(window.navigator.platform=="Win32"){ document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(''); document.write(''); document.write(' '); document.write('不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。 '); document.write(''); } if(window.navigator.platform=="Win64"){ document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(''); document.write(''); document.write(' '); document.write('不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。 '); document.write(''); } } else if (browser=="firefox"){ document.write(''); document.write('尚未安装NTKO Web FireFox跨浏览器插件。请点击安装组1件 '); document.write(' '); }else if(browser=="chrome"){ document.write(' '); document.write('尚未安装NTKO Web Chrome跨浏览器插件。请点击安装组件仅支持chrome版本50多,360没有限制 '); document.write(''); }else if (Sys.opera){ alert("sorry,ntko web印章暂时不支持opera!"); }else if (Sys.safari){ alert("sorry,ntko web印章暂时不支持safari!"); }