1 Star 0 Fork 3

NoC/DzzOffice 点聚weboffice插件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
LoadWebOffice.js 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
小胡 提交于 2023-06-25 13:36 . 发布插件
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
var s;
(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
(s = ua.match(/rv:([\d.]+)/)) ? Sys.ie = 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;
if (Sys.ie) {
var s = ""
s += "<object id=WebOffice1 height='100%' width='100%' style='LEFT: 0px; TOP: 0pxz-index:1;position:relative' classid='clsid:E77E049B-23FC-4DB8-B756-60529A35FAD5' codebase='dzz/djoffice/WebOffice.cab#Version=7,0,1,0'>"
s +="<param name='_ExtentX' value='6350'><param name='_ExtentY' value='6350'><param name='wmode' value='transparent'>"
s +="</OBJECT>"
document.write(s)
}
if (Sys.firefox || Sys.chrome) {
var s = ""
s += "<object id=WebOffice1 TYPE='application/x-itst-activex' clsid='{E77E049B-23FC-4DB8-B756-60529A35FAD5}' event_NotifyCtrlReady='NotifyCtrlReady' progid='' height='100%' width='100%' style='LEFT: 0px; TOP: 0px;z-index:1;position:relative' codeBase='dzz/djoffice/Weboffice.cab#version=7,0,1,0' >"
s += "<param name='_ExtentX' value='6350'><param name='_ExtentY' value='6350'><param name='wmode' value='transparent'>"
s += "</OBJECT>"
document.write(s);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/No_C/djoffice.git
[email protected]:No_C/djoffice.git
No_C
djoffice
DzzOffice 点聚weboffice插件
master

搜索帮助