ntkoofficecontrol.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. document.write('<!-- 用来产生编辑状态的ActiveX控件的JS脚本--> ');
  2. document.write('<!-- 因为微软的ActiveX新机制,需要一个外部引入的js--> ');
  3. document.write('<object id="TANGER_OCX" classid="clsid:A64E3073-2016-4baf-A89D-FFE1FAA10EC0" ');
  4. document.write('codebase="/shares/ntko/OfficeControl.cab#version=6,0,0,1" width="100%" height="100%"> ');
  5. document.write('<param name="IsUseUTF8URL" value="-1"> ');
  6. document.write('<param name="IsUseUTF8Data" value="-1"> ');
  7. document.write('<param name="BorderStyle" value="1"> ');
  8. document.write('<param name="BorderColor" value="14402205"> ');
  9. document.write('<param name="TitlebarColor" value="15658734"> ');
  10. document.write('<param name="TitlebarTextColor" value="0"> ');
  11. document.write('<param name="MenubarColor" value="14402205"> ');
  12. document.write('<param name="MenuButtonColor" VALUE="16180947"> ');
  13. document.write('<param name="MenuBarStyle" value="3"> ');
  14. document.write('<param name="MenuButtonStyle" value="7"> ');
  15. document.write('<param name="WebUserName" value="NTKO"> ');
  16. document.write('<param name="ProductCaption" value="琅岐OA">');
  17. document.write('<param name="ProductKey" value="6F2D50550E88DA8E3E11B735D6B8001FF9A92927">');
  18. document.write('<param name="Caption" value=" "> ');
  19. document.write('<SPAN STYLE="color:red">不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。</SPAN> ');
  20. document.write('</object>');
  21. //var s,classid,Sys={},ua=navigator.userAgent.toLowerCase();
  22. //(s=ua.match(/msie ([\d.]+)/))?Sys.ie=s[1]:(s=ua.match(/trident\/([\d.]+)/))?Sys.ie9=s[1]:(s=ua.match(/firefox\/([\d.]+)/))?Sys.firefox=s[1]:(s=ua.match(/chrome\/([\d.]+)/))?Sys.chrome=s[1]:(s=ua.match(/opera.([\d.]+)/))?Sys.opera=s[1]:(s=ua.match(/version\/([\d.]+).*safari/))?Sys.safari=s[1]:0,
  23. // classid="A64E3073-2016-4baf-A89D-FFE1FAA10EC0",
  24. // Sys.ie||Sys.ie9?(document.write("<!-- 用来产生编辑状态的ActiveX控件的JS脚本--> "),
  25. // document.write("<!-- 因为微软的ActiveX新机制,需要一个外部引入的js--> "),
  26. // document.write('<object id="TANGER_OCX" classid="clsid:'+classid+'" '),
  27. // document.write('codebase="/shares/ntko/OfficeControl.cab#version=5,0,3,1" width="100%" height="100%"> '),
  28. // document.write('<param name="IsUseUTF8URL" value="-1"> '),
  29. // document.write('<param name="IsUseUTF8Data" value="-1"> '),
  30. // document.write('<param name="BorderStyle" value="1"> '),
  31. // document.write('<param name="BorderColor" value="14402205"> '),
  32. // document.write('<param name="TitlebarColor" value="15658734"> '),
  33. // document.write('<param name="TitlebarTextColor" value="0"> '),
  34. // document.write('<param name="MenubarColor" value="13158600"> '),
  35. // document.write('<param name="MenuButtonColor" VALUE="16180947"> '),
  36. // document.write('<param name="MenuBarStyle" value="3"> '),
  37. // document.write('<param name="MenuButtonStyle" value="7"> '),
  38. // document.write('<param name="WebUserName" value="NTKO"> '),
  39. // document.write('<param name="Caption" value="NTKO OFFICE文档控件"> '),
  40. // document.write('<SPAN STYLE="color:red">不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。请点击<a href="/shares/ntko/OfficeControlSetup.exe">安装控件</a></SPAN> '),
  41. // document.write("</object>")):Sys.chrome?(document.write('<object id="TANGER_OCX" clsid="{'+classid+'}" '),
  42. // document.write('type="application/ntko-plug" codebase="/shares/ntko/OfficeControl.cab#version=5,0,3,1" width="100%" height="100%" '),
  43. // document.write('_IsUseUTF8URL="-1" '),
  44. // document.write('_IsUseUTF8Data="-1" '),
  45. // document.write('_BorderStyle="1" '),
  46. // document.write('_BorderColor="14402205" '),
  47. // document.write('_MenubarColor="14402205" '),
  48. // document.write('_MenuButtonColor="16180947" '),
  49. // document.write('_MenuBarStyle="3" '),
  50. // document.write('_MenuButtonStyle="7" '),
  51. // document.write('_WebUserName="NTKO" '),
  52. // document.write('_Caption=" NTKO OFFICE文档控件 " > '),
  53. // document.write('<SPAN STYLE="color:red">不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。请点击<a href="/shares/ntko/OfficeControlSetup.exe">安装控件</a></SPAN> '),
  54. // document.write("</object>")):Sys.firefox?alert("对不起,暂时不支持火狐!"):Sys.opera?alert("对不起,ntko 暂时不支持opera!"):Sys.safari&&alert("对不起,ntko 暂时不支持safari!");
  55. //
  56. // 以下支持火狐及谷歌浏览器
  57. // document.write('<object id="TANGER_OCX" type="application/ntko-plug"
  58. // codebase="/shares/ntko/OfficeControl.cab#version=5,0,3,1" width="100%"
  59. // height="100%" ForOnSaveToURL="OnSaveToURL"
  60. // ForOnBeginOpenFromURL="OnBeginOpenFromURL"
  61. // ForOndocumentopened="Ondocumentopened"');
  62. // document.write('ForOnFileCommand="FileCommand"');
  63. // document.write('ForOnCustomMenuCmd2="CustomMenuCmd"');
  64. // document.write('_IsUseUTF8URL="-1" ');
  65. // document.write('_IsUseUTF8Data="-1" ');
  66. // document.write('_BorderStyle="1" ');
  67. // document.write('_BorderColor="14402205" ');
  68. // document.write('_MenubarColor="14402205" ');
  69. // document.write('_MenuButtonColor="16180947" ');
  70. // document.write('_MenuBarStyle="3" ');
  71. // document.write('_MenuButtonStyle="7" ');
  72. // document.write('_WebUserName="NTKO" ');
  73. // document.write('clsid="{A64E3073-2016-4baf-A89D-FFE1FAA10EC0}" >');
  74. // document.write('<SPAN STYLE="color:red">尚未安装NTKO Web FireFox跨浏览器插件。请点击<a
  75. // href="ntkoplugins.xpi">安装组件</a></SPAN> ');
  76. // document.write('</object> ');
  77. //var s,classid,Sys={},ua=navigator.userAgent.toLowerCase();
  78. //(s=ua.match(/msie ([\d.]+)/))?Sys.ie=s[1]:(s=ua.match(/trident\/([\d.]+)/))?Sys.ie9=s[1]:(s=ua.match(/firefox\/([\d.]+)/))?Sys.firefox=s[1]:(s=ua.match(/chrome\/([\d.]+)/))?Sys.chrome=s[1]:(s=ua.match(/opera.([\d.]+)/))?Sys.opera=s[1]:(s=ua.match(/version\/([\d.]+).*safari/))?Sys.safari=s[1]:0,
  79. // classid="A64E3073-2016-4baf-A89D-FFE1FAA10EC0",
  80. // Sys.ie||Sys.ie9?(document.write("<!-- 用来产生编辑状态的ActiveX控件的JS脚本--> "),
  81. // document.write("<!-- 因为微软的ActiveX新机制,需要一个外部引入的js--> "),
  82. // document.write('<object id="TANGER_OCX" classid="clsid:'+classid+'" '),
  83. // document.write('codebase="/shares/ntko/OfficeControl.cab#version=5,0,3,1" width="100%" height="100%"> '),
  84. // document.write('<param name="IsUseUTF8URL" value="-1"> '),
  85. // document.write('<param name="IsUseUTF8Data" value="-1"> '),
  86. // document.write('<param name="BorderStyle" value="1"> '),
  87. // document.write('<param name="BorderColor" value="14402205"> '),
  88. // document.write('<param name="TitlebarColor" value="15658734"> '),
  89. // document.write('<param name="TitlebarTextColor" value="0"> '),
  90. // document.write('<param name="MenubarColor" value="13158600"> '),
  91. // document.write('<param name="MenuButtonColor" VALUE="16180947"> '),
  92. // document.write('<param name="MenuBarStyle" value="3"> '),
  93. // document.write('<param name="MenuButtonStyle" value="7"> '),
  94. // document.write('<param name="WebUserName" value="NTKO"> '),
  95. // document.write('<param name="UILangCode" value="AUTO"> '),
  96. // document.write('<param name="Serverpage" value="paaa.asp"> '),
  97. // document.write('<param name="Caption" value="NTKO OFFICE文档控件示例演示 http://www.ntko.com"> '),
  98. // document.write('<SPAN STYLE="color:red">不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。请点击<a href="/shares/ntko/OfficeControlSetup.exe">安装控件</a></SPAN> '),
  99. // document.write("</object>")):Sys.chrome?(document.write('<object id="TANGER_OCX" clsid="{'+classid+'}" '),
  100. // document.write('type="application/ntko-plug" codebase="/shares/ntko/OfficeControl.cab#version=5,0,3,1" width="100%" height="100%" '),
  101. // document.write('ForOnSaveToURL="OnComplete2" '),
  102. // document.write('ForOnBeginOpenFromURL="OnComplete" '),
  103. // document.write('ForOnDocumentOpened="DocumentOpened" '),
  104. // document.write('ForOnpublishAshtmltourl="publishashtml" '),
  105. // document.write('ForOnpublishAspdftourl="publishaspdf" '),
  106. // document.write('ForOnSaveAsOtherFormatToUrl="saveasotherurl" '),
  107. // document.write('ForOnDoWebGet="dowebget" '),
  108. // document.write('ForOnDoWebExecute="webExecute" '),
  109. // document.write('ForOnDoWebExecute2="WebExecute" '),
  110. // document.write('ForOnFileCommand="filecommand" '),
  111. // document.write('ForOnCustomMenuCmd2="CustomMenuCmd" '),
  112. // document.write('ForOnCustomToolBarCommand="CustomToolBarCom" '),
  113. // document.write('ForOnSignSelect="signselect" '),
  114. // document.write('_IsUseUTF8URL="-1" '),
  115. // document.write('_IsUseUTF8Data="-1" '),
  116. // document.write('_BorderStyle="1" '),
  117. // document.write('_BorderColor="14402205" '),
  118. //
  119. // document.write('_MenubarColor="14402205" '),
  120. //
  121. // document.write('_MenuButtonColor="16180947" '),
  122. // document.write('_MenuBarStyle="3" '),
  123. // document.write('_MenuButtonStyle="7" '),
  124. // document.write('_WebUserName="NTKO" '),
  125. // document.write('_Caption=" NTKO OFFICE文档控件示例演示" > '),
  126. // document.write('<SPAN STYLE="color:red">不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。请点击<a href="/shares/ntko/OfficeControlSetup.exe">安装控件</a></SPAN> '),
  127. // document.write("</object>")):Sys.firefox?(document.write('<object id="TANGER_OCX" clsid="{'+classid+'}" '),
  128. // document.write('type="application/ntko-plug" codebase="/shares/ntko/OfficeControl.cab#version=5,0,3,1" width="100%" height="100%" '),
  129. // document.write('ForOnDocumentOpened="DocumentOpened" '),
  130. // document.write('ForOnCustomToolBarCommand="CustomToolBarCom" '),
  131. // document.write('ForOnFileCommand="filecommand" '),
  132. // document.write('ForAfterSaveAsPDFFile="aftersavepdffile" '),
  133. // document.write('ForOnpublishAshtmltourl="publishashtml" '),
  134. // document.write('ForOnpublishAspdftourl="publishaspdf" '),
  135. // document.write('ForOnSaveAsOtherFormatToUrl="saveasotherurl" '),
  136. // document.write('ForOnDoWebGet="dowebget" '),
  137. // document.write('ForOnDoWebExecute="webExecute" '),
  138. // document.write('ForOnDoWebExecute2="webExecute2" '),
  139. // document.write('ForOnCustomMenuCmd2="CustomMenuCmd" '),
  140. // document.write('ForOnSignSelect="signselect" '),
  141. // document.write('_IsUseUTF8URL="-1" '),
  142. // document.write('_IsUseUTF8Data="-1" '),
  143. // document.write('_BorderStyle="1" '),
  144. // document.write('_BorderColor="14402205" '),
  145. // document.write('_MenubarColor="14402205" '),
  146. // document.write('_MenuButtonColor="16180947" '),
  147. // document.write('_MenuBarStyle="3" '),
  148. // document.write('_MenuButtonStyle="7" '),
  149. // document.write('_WebUserName="NTKO" '),
  150. // document.write('_CustomToolBar="-1" '),
  151. // document.write('_Caption="NTKO OFFICE文档控件示例演示" >'),
  152. // document.write('<SPAN STYLE="color:red">不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。请点击<a href="/shares/ntko/OfficeControlSetup.exe">安装控件</a></SPAN> '),
  153. // document.write("</object> ")):Sys.opera?alert("sorry,ntko 暂时不支持opera!"):Sys.safari&&alert("sorry,ntko 暂时不支持safari!");