/*document.write("
");*/ document.write(" "); function loadCss(url) { var link = document.createElement("link"); link.type = "text/css"; link.rel = "stylesheet"; link.href = url; document.getElementsByTagName("head")[0].appendChild(link); } var isIE = (document.all) ? true : false; var isIE6 = isIE && ([/MSIE (\d+)\.0/i.exec(navigator.userAgent)][0][1] == 6); var $G = function (id) { return "string" == typeof id ? document.getElementById(id) : id; }; var Class = { create: function () { return function () { this.initialize.apply(this, arguments); } } } var Extend = function (destination, source) { for (var property in source) { destination[property] = source[property]; } } var Bind = function (object, fun) { return function () { return fun.apply(object, arguments); } } var Each = function (list, fun) { for (var i = 0, len = list.length; i < len; i++) { fun(list[i], i); } }; var Contains = function (a, b) { return a.contains ? a != b && a.contains(b) : !!(a.compareDocumentPosition(b) & 16); } var OverLay = Class.create(); OverLay.prototype = { initialize: function (options) { this.SetOptions(options); this.Lay = $G(this.options.Lay) || document.body.insertBefore(document.createElement("div"), document.body.childNodes[0]); this.Color = this.options.Color; this.Opacity = parseInt(this.options.Opacity); this.zIndex = parseInt(this.options.zIndex); with (this.Lay.style) { display = "none"; zIndex = this.zIndex; left = top = 0; position = "fixed"; width = height = "100%"; } if (isIE6) { this.Lay.style.position = "absolute"; //ie6璁剧疆瑕嗙洊灞傚ぇ灏忕▼搴� this._resize = Bind(this, function () { this.Lay.style.width = Math.max(document.documentElement.scrollWidth, document.documentElement.clientWidth) + "px"; this.Lay.style.height = Math.max(document.documentElement.scrollHeight, document.documentElement.clientHeight) + "px"; }); //閬洊select this.Lay.innerHTML = '' } }, //璁剧疆榛樿灞炴€� SetOptions: function (options) { this.options = {//榛樿鍊� Lay: null,//瑕嗙洊灞傚璞� Color: "#000",//鑳屾櫙鑹� Opacity: 50,//閫忔槑搴�(0-100) zIndex: 2147483640//灞傚彔椤哄簭 }; Extend(this.options, options || {}); }, //鏄剧ず Show: function () { //鍏煎ie6 if (isIE6) { this._resize(); window.attachEvent("onresize", this._resize); } //璁剧疆鏍峰紡 with (this.Lay.style) { //璁剧疆閫忔槑搴� filter = "alpha(opacity:" + this.Opacity + ")"; opacity = this.Opacity / 100; backgroundColor = this.Color; display = "block"; } }, //鍏抽棴 Close: function () { this.Lay.style.display = "none"; if (isIE6) { window.detachEvent("onresize", this._resize); } } }; var LightBox = Class.create(); LightBox.prototype = { initialize: function (box, options) { this.Box = $G(box);//鏄剧ず灞� this.OverLay = new OverLay(options);//瑕嗙洊灞� this.SetOptions(options); this.Fixed = !!this.options.Fixed; this.Over = !!this.options.Over; this.Center = !!this.options.Center; this.onShow = this.options.onShow; this.Box.style.zIndex = this.OverLay.zIndex + 99990; //this.Box.style.display = "none"; //鍏煎ie6鐢ㄧ殑灞炴€� if (isIE6) { this._top = this._left = 0; this._select = []; this._fixed = Bind(this, function () { this.Center ? this.SetCenter() : this.SetFixed(); }); } }, //璁剧疆榛樿灞炴€� SetOptions: function (options) { this.options = {//榛樿鍊� Over: true,//鏄惁鏄剧ず瑕嗙洊灞� Fixed: true,//鏄惁鍥哄畾瀹氫綅 Center: true,//鏄惁灞呬腑 onShow: function () { }//鏄剧ず鏃舵墽琛� }; Extend(this.options, options || {}); }, //鍏煎ie6鐨勫浐瀹氬畾浣嶇▼搴� SetFixed: function () { this.Box.style.top = document.documentElement.scrollTop - this._top + this.Box.offsetTop + "px"; this.Box.style.left = document.documentElement.scrollLeft - this._left + this.Box.offsetLeft + "px"; this._top = document.documentElement.scrollTop; this._left = document.documentElement.scrollLeft; }, //鍏煎ie6鐨勫眳涓畾浣嶇▼搴� SetCenter: function () { this.Box.style.marginTop = document.documentElement.scrollTop - this.Box.offsetHeight / 2 + "px"; this.Box.style.marginLeft = document.documentElement.scrollLeft - this.Box.offsetWidth / 2 + "px"; }, //鏄剧ず Show: function (options) { if (typeof options == 'undefined') options = { width: '800px', height: '500px' }; if (typeof options != 'undefined' && options.height) { if (parseInt(options.height) < ($(window).height() - 130)) document.getElementById('showiframe').height = options.height; else document.getElementById('showiframe').height = $(window).height() - 130; } if (typeof options != 'undefined' && options.width) { $("#idBox").css("max-width", options.width);//document.getElementById('showiframe').width = options.width; var idBoxWidth = $("#idBox").width(); var idBoxHeight = $("#idBox").height(); $("#idBox").css("margin-left", -idBoxWidth / 2); $("#idBox").css("margin-top", -idBoxHeight / 2); } //鍒锋柊楠岃瘉鐮� //getObject('img').src='/has_client/include/code.asp?'+(new Date().getTime()); //鍥哄畾瀹氫綅 //this.Box.style.position = this.Fixed && !isIE6 ? "fixed" : "absolute"; //瑕嗙洊灞� this.Over && this.OverLay.Show(); this.Box.style.display = ""; //document.login_club.username.focus(); //灞呬腑 /* if(this.Center){ this.Box.style.top = this.Box.style.left = "50%"; //璁剧疆margin if(this.Fixed){ this.Box.style.marginTop = - this.Box.offsetHeight / 2 + "px"; this.Box.style.marginLeft = - this.Box.offsetWidth / 2 + "px"; }else{ this.SetCenter(); } }*/ //鍏煎ie6 if (isIE6) { if (!this.Over) { //娌℃湁瑕嗙洊灞俰e6闇€瑕佹妸涓嶅湪Box涓婄殑select闅愯棌 this._select.length = 0; Each(document.getElementsByTagName("select"), Bind(this, function (o) { if (!Contains(this.Box, o)) { o.style.visibility = "hidden"; this._select.push(o); } })) } //璁剧疆鏄剧ず浣嶇疆 this.Center ? this.SetCenter() : this.Fixed && this.SetFixed(); //璁剧疆瀹氫綅 this.Fixed && window.attachEvent("onscroll", this._fixed); } this.onShow(); }, //鍏抽棴 Close: function () { this.Box.style.display = "none"; this.OverLay.Close(); document.getElementById("idBox").style.height = ''; if (isIE6) { window.detachEvent("onscroll", this._fixed); Each(this._select, function (o) { o.style.visibility = "visible"; }); } } }; if (typeof loadExtendFileCache === 'undefined') { var loadExtendFileCache = { 'css': [], 'js': [] }; } if (typeof loadExtendFile === 'undefined') { function loadExtentFile(filePath, fileType) { if (fileType == "js") { if (loadExtendFileExists(filePath, fileType)) return false; var oJs = document.createElement('script'); oJs.setAttribute("type", "text/javascript"); oJs.setAttribute("src", filePath);//鏂囦欢鐨勫湴鍧€ ,鍙负缁濆鍙婄浉瀵硅矾寰� document.getElementsByTagName("head")[0].appendChild(oJs);//缁戝畾 loadExtendFileCache['js'].push(filePath); } else if (fileType == "css") { if (loadExtendFileExists(filePath, fileType)) return false; var oCss = document.createElement("link"); oCss.setAttribute("rel", "stylesheet"); oCss.setAttribute("type", "text/css"); oCss.setAttribute("href", filePath); document.getElementsByTagName("head")[0].appendChild(oCss);//缁戝畾 loadExtendFileCache['css'].push(filePath); } } } if (typeof loadExtendFileExists === 'undefined') { function loadExtendFileExists(filePath, fileType) { if (typeof loadExtendFileCache[fileType] == 'undefined') return false; for (var i = 0; i < loadExtendFileCache[fileType].length; i++) { if (loadExtendFileCache[fileType][i] == filePath) return true; } return false; } } /* function GetUrlPara(){ var url = document.location.toString(); var arrUrl = url.split("?"); var paras=''; //console.log(para); if(arrUrl.length>1){ var para = arrUrl[1]; var arrUrl2=para.split("&"); arrUrl2.forEach(function(e){ if(e.indexOf("mod=")>=0||e.indexOf("act=")>=0){ return; }else{ paras+=e+"&"; } }) } return paras; } */ function goserverurl(sys_url, DIY_JS_SERVER, DIY_WEBSITE_ID) { var params = GetUrlPara(); var serverUrl = '//' + DIY_JS_SERVER + '/sysTools.php?mod=viewsConn&idweb=' + DIY_WEBSITE_ID + '&' + params + sys_url; var newserverUrl = "