control/plugin/zDialog/zDialog.js
(开头部分) 34KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var IMAGESPATH = '/control/plugin/zDialog/'; //图片路径配置,如在有iframe情况下使用,此路径为最顶层窗口页面的相对路径
//var IMAGESPATH = 'http://www.wangzhaohui.com/wp-content/uploads/2009/11/'; //图片路径配置
var HideScrollbar=true;//弹出Dialog时是否隐藏滚动条
/*************************一些公用方法和属性****************************/
var agt = window.navigator.userAgent;
var isIE = agt.toLowerCase().indexOf("msie") != -1;
var isGecko = agt.toLowerCase().indexOf("gecko") != -1;
var ieVer = isIE ? parseInt(agt.split(";")[1].replace(/(^\s*)|(\s*$)/g,"").split(" ")[1]) : 0;
var isIE8 = !!window.XDomainRequest && !!document.documentMode;
var isIE7 = ieVer==7 && !isIE8;
var ielt7 = isIE && ieVer<7;
var isQuirks = document.compatMode == "BackCompat";
var $id = function (id) {
return typeof id == "string" ? document.getElementById(id) : id;
};
//var getDom = $id;
function stopEvent(evt){//阻止一切事件执行,包括浏览器默认的事件
evt = window.event||evt;
if(!evt){
return;
}
if(isGecko){
evt.preventDefault();
evt.stopPropagation();
}
evt.cancelBubble = true
evt.returnValue = false;
}
Array.prototype.remove = function (s, dust) { //如果dust为ture,则返回被删除的元素
if (dust) {
var dustArr = [];
for (var i = 0; i < this.length; i++) {
if (s == this[i]) {
dustArr.push(this.splice(i, 1)[0]);
}
}
return dustArr;
}
for (var i = 0; i < this.length; i++) {
if (s == this[i]) {
this.splice(i, 1);
}
}
return this;
}
if(!isIE&&HTMLElement){
if(!HTMLElement.prototype.attachEvent){
window.attachEvent = document.attachEvent = HTMLElement.prototype.attachEvent = function(evtName,func){
evtName = evtName.substring(2);
this.addEventListener(evtName,func,false);
}
window.detachEvent = document.detachEvent = HTMLElement.prototype.detachEvent = function(evtName,func){
evtName = evtName.substring(2);
this.removeEventListener(evtName,func,false);
}
}
后面还有 773 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。