123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
-
- Namespace.register("U.CD");
- U.CD.dom = "/domain.htm";
- U.CD.cdom = "/Crossdomain.htm";
- U.CD.Len = 1;
- U.CD.ST = ["U_Main"];
- U.CD.UTF = [{ "U_Main": "MA" }, { "U_Disk": "Adisk" }, { "U_BG": "UB" }, { "U_PB": "PB" }, { "U_Pay": "PY" }, { "U_ME": "MA" }, { "reply": "RY"}];
- U.CD.UKE = [
- ["U_Main", "http://main.1473.cn/Crossdomain.htm", "A"],
- ];
- U.CD.LIFA = function (_ajaxArr, _cb, _el) {
-
- var _bool, _iframeId, i;
-
- _ajaxName = U.CD.UTF;
- _crossObj = U.CD.UKE;
- _objLength = _crossObj.length;
- _frag = $$("frag");
- U.CD.Len = _crossObj.length;
-
- if (document.domain.indexOf("1473.cn") > -1) {
-
-
-
-
-
- for (i = 0; i < _objLength; i++) {
- try {
-
- _iframeId = _crossObj[i][0];
-
- if (window[_iframeId] && window[_iframeId].location) {
-
- if (window[_iframeId].location.href == _crossObj[i][1]) {
- if (U.CD.AsynLIFA.apply($("#" + _iframeId)[0], [_ajaxName[i], _cb, []])) {
- return;
- };
- break;
- } else {
- $("#" + _iframeId).remove();
- }
- }
-
-
- _bool = true;
- _UIFR = $$("iframe", { "id": _iframeId, "name": _iframeId, "width": 0, "height": 0, "style": { "display": "none" }, "src": _crossObj[i][1] }, _frag);
-
- U.MD.IframeLoad(_UIFR, [
- [U.CD.AsynLIFA, [_ajaxName[i], _cb, U.CD.ST]]
- ]);
- } catch (e) {
- return;
- }
- }
- } else {
- if (window["U_Domain"]) {
- if (window["U_Domain"].location.href == U.CD.dom) {
- U.CD.AsynDomain(_cb);
- return;
- }
- }
- else {
- U.CD.Introduce(_cb);
- }
- }
-
- if (_el && _bool) {
- U.MD.loading(_el[0] || _el, _el[1]);
- }
- ($("#usestudio-server")[0] || $("body")[0]).appendChild(_frag);
- }
- U.CD.AsynLIFA = function (iframe, _cb, _crossArr) {
- var i, j, _iframe = this.contentWindow;
- _iframe.name = this.id;
- U.CD["Len"]--;
- try {
- for (i in iframe) {
-
-
- j = _crossArr.indexOf(i);
- if (j > -1) { _crossArr.splice(j, 1) }
- }
- } catch (e) { }
- if (!_crossArr.length) {
- _crossArr.push(false);
- if (_cb) {
- (_cb());
- }
- return true;
- }
- }
- U.CD.Introduce = function (_cb, _el) {
- var _el = $$("iframe", {
- "id": "U_Domain",
- "name": "U_Domain",
- "width": 0,
- "height": 0,
- "style": { "display": "none" },
- "src": U.CD.dom
- });
- U.MD.IframeLoad(_el, $("#usestudio-server")[0] || $("body")[0]), [
- [U.CD.AsynDomain, [_cb]]
- ];
- if (_el) {
- U.MD.loading(_el[0] || _el, _el[1]);
- }
-
- }
- U.CD.AsynDomain = function (_cb) {
- (U.Ut.isFunction(_cb)) && (_cb());
- }
- U.CD.GQB = function (loading, _cb, _bool) {
- if (!$("#usestudio-server")[0]) {
- var _el = $$("div", { id: "usestudio-server", className: "usestudio-server", "__top__": "false" }, document.body);
-
- if (document.domain == "1473.cn") {
- _el = $$("iframe", { "width": 0, "height": 0, "style": { "display": "none" }, "src": "/index8.aspx" }, $("body")[0]);
- window.onload = null;
- U.MD.IframeLoad(_el, [
- [U.CD.AsynGQB, [_el, loading, _cb, _bool]]
- ]);
- }
-
- else { U.CD.CGQB(_cb, _bool); }
- }
- }
- U.CD.AsynGQB = function (iframe, loading, cb, b) {
- var i, _document, _html;
-
-
- var _windows = iframe.contentWindow;
- document.wincookie = iframe.contentWindow.document.cookie;
- var _content = $("#usestudio-server")[0];
-
-
-
-
-
- _html = $(b === true ? "body" : "#UD_SY", _windows.document)[0].innerHTML;
-
-
- try {
- _document = _windows.document.open();
- }
- catch (e) {
- _document = _windows.document;
- }
- _document.write = "";
- _document.close();
- $(iframe).remove()
-
- _content.innerHTML = _html;
- if (U.D.Load) { U.D.Load(cb) }
- else if (cb) { cb(); }
- }
|