Namespace.register("U.D"); U.D.TF = false; window.onload = function () { U.D.FLoad(); }; U.D.FLoad = function () { U.A = null; U.CI.GCInfo(); U.D.AsynLI(); US["ITID"] = Guid.NewGuid(); U.D.MaxMin(); U.D.PreLoad(); U.MPlayer.Onload(); }; U.D.AsynJWH = function () { var a = $("#UF_UPT"), b = a.GetElementInfo(); U.D.TF = true; U.D.AD.ZK(); U.D.ZYBH([false, "云端在线,体验云服务", "最新上线:云端在线Word 新! Excel 新!,实现在线生成网站同时可分享,体验最好的云端服务。", [U.D.UDOS[7].onclick, "登录", U.U.L.LARG, "Word"], { "X": b["TX"], "Y": b["TY"], "L": b["TX"] - 400, "T": b["TY"] + 60 }], a[0]); }; U.D.ONTSJZ = function (a) { a["TF"] = false; U.D.USTimer(); U.U.L.CookieL(); U.D.AsynJWH(); }; U.D.AsynLI = function () { var d, e = document.createDocumentFragment(), c, b = { "U_Main": "A", "U_Disk": "Adisk", "U_BG": "UB", "U_PB": "PB", "U_Pay": "PY", "reply": "RY", "U_ME": "MA", "TF": true }, a = [["U_Main", "http://main.1473.cn/index.htm", "A"]]; U.D.ITF = a.length; for (var d = 0; d < a.length; d++) { c = $$("iframe", { "id": a[d][0], "name": a[d][0], "src": a[d][1], "width": 0, "height": 0, "style": { "display": "none" } }, e); U.MD.IframeLoad(c, [[U.D.AsynLIFA, ([b])]]); } document.body.appendChild(e); }; U.D.AsynLIFA = function (a) { for (var b in a) { if (a.hasOwnProperty(b) && b != "TF") { (window.U)[a[b]] = window.frames["U_Main"].U.A; delete a[b]; } } this.contentWindow.name = this.id; U.D.ONTSJZ(a); }; U.D.PreLoad = function () { U.D.T.displayDesktop(); U.D.prinetic(); U.D.MS.onesetInterval(0); U.D.MS.SetTimeout(); document.onclick = document.body.onmousedown = U.M.apply(this, [[U.D.SetDTop], [U.D.R.DeskTopRightClick]]); }; U.D.USTimer = function () { U.U.L.UInfo(); setTimeout(U.M.apply(this, ([[U.D.GG.GL, ([US.PB.Category[U.P.getRandom(5), true]])]])), 300000); setTimeout(U.M.apply(this, ([[U.D.GG.GN, ([US.PB.TZGG.all])]])), 125000); }; U.D.MaxMin = function () { var a = $("body", document).GetElementInfo(); US.Height = a["CH"]; US.Width = a["CW"]; }; U.D.WRZTimer = null; window.onresize = function () { clearTimeout(U.D.WRZTimer); U.D.WRZTimer = setTimeout(function () { if (document.readyState == "complete") { U.D.MaxMin(); if (U.D.UDOS) { U.D.IconRank(); } if (US.Disk.diskfileTree) { U.Dk.HP.CW(); } } }, 500); }; document.onselectstart = function () { U.M.StopBubble(); var a = U.M.GetDE(event.srcElement); if (a && a.nodeType == 3 || a.tagName.toLocaleLowerCase() != "body") { return true; } else { return false; } }; U.D.Favorite = function () { window.external.addFavorite("", "云操作系统"); }; U.D.SHome = function (a) { a.style.behavior = "url(#default#homepage)"; a.setHomePage(""); return false; }; Namespace.register("U.D.R"); U.D.R.DeskTopRightClick = function () { U.D.R.DesktopLeftClick(); var a = true; if (event.button == 2) { U.D.R.DNIcon((["block", "none", "none", "none"])); U.M.RLocate($("#UD_RM_RMenu")[0]); } ((event) && (event.srcElement.tagName.toLocaleLowerCase() == "a") && (a = false)); return a; }; U.D.R.AppRightClick = function (d, f) { var b = U.M.GetMousep(), e = $("#UD_RM_AppMenu")[0], a = $("li", e), c; U.D.R.DNIcon((["none", "block", "none", "none"])); U.M.RLocate(e); c = d.AppNewWin ? "US_Manage_App_Open" : d.ApplicaitonUrl; a[0].onclick = U.M.apply(this, [[U.M.divdoubleClick, ([c, d.ApplicationID, "", f.outerHTML, d.AppNewWin, d.ApplicaitonUrl])], [document.onclick]]); a[1].onclick = U.M.apply(this, [[U.D.deleteApp, ([d, f])]]); a[0].onmousedown = a[1].onmousedown = U.M.StopBubble; }; U.D.R.ChatBoxRightclick = function (e) { var b = $("#UD_RM_LT_AM")[0]; U.M.RLocate(b); var a = $("li", b); var d = [[U.U.I.POUW, ([e.UserId])], [U.F.J.ANF, ([e, "add"])], [U.F.W.DMW, ([e])]]; for (var c = 0; c < d.length; c++) { a[c].onclick = U.M.apply(this, [d[c]]); } b.onmousedown = U.M.StopBubble; U.M.StopBubble(); }; U.D.R.DNIcon = function (a) { $("#UD_RM_RMenu")[0].style.display = a[0]; $("#UD_RM_AppMenu")[0].style.display = a[1]; $("#UD_RM_UPMenu")[0].style.display = a[2]; $("#UD_RM_LT_AM")[0].style.display = a[3]; }; U.D.R.DesktopLeftClick = function () { U.D.R.DNIcon((["none", "none", "none", "none"])); $("#UD_GG_BN")[0].style.display = $("#UD_GG")[0].style.display = $("#UF_RB_FriDLBox")[0].style.display = $("#UD_BB_BAB")[0].style.display = $("#UD_MF_Per")[0].style.display = "none"; }; U.D.R.AboutUSright = function (c) { var b = $("#UD_AboutUs")[0]; var a = $("span", b); if (c.id == "UD_GYW_AU") { U.MR.OptionGroupSelect(a[0]); U.D.R.AboutChange(a[0].parentNode); } else { U.MR.OptionGroupSelect(a[1]); U.D.R.AboutChange(a[1].parentNode); } }; U.D.R.AboutChange = function (d) { var a, c = $("#UD_AboutUs_Content")[0], b = d.getAttribute("selectnum"); c.innerHTML = ""; if (b == "1") { $$("div", { "className": "UD_R_GYH", "innerHTML": "云操作系统:通过多种技术的结合制作云存储,聊天系统,音乐播放,云视频,云浏览器等功能的用户操作系统。
联系方式如下:
" }, c); $$("div", { "className": "UD_R_GYL", "innerHTML": "新浪微博:
腾讯微博:
开发QQ群:
联系手机:
百度贴吧:
微信号:
企业版授权:" }, c); $$("div", { "className": "UD_R_GYR", "innerHTML": "http://weibo.com/usestudio
http://t.qq.com/us1473
337510064
13928417148
云操作系统
雨云科技
深圳市东立胜科技有限公司" }, c); $$("div", { "className": "UD_R_GYB", "innerHTML": "CopyRight © UseStudio.All Rights Reserved.
版权所有©深圳市雨云科技有限公司
" }, c); $$("img", { "className": "UD_R_GYEW", "src": "/img/qqew.jpg" }, c); } else { if (b == "2") { a = $$("div", { "innerHTML": "欢迎对计算机技术有兴趣的同仁加入云操作系统的研发。
需要掌握的技术:javascript,css,html,winForm,SQL,MySql,
php,net,C语言,linux,mono,
Gcc,分布式存储,HTML5,网络部署等.
联系email:121889866@qq.com.
在线购买书籍地址:" }, c); $$("a", { "href": "javascript:U.M.divdoubleClick('UM_Shop')", "innerHTML": "书籍购买地址" }, a); } else { a = $$("div", { "innerHTML": "联系方式:121889866@qq.com.
QQ群:337510064
手机:13928417148
微博地址:" }, c); $$("a", { "href": "http://weibo.com/u/3934163141", "target": "blank", "innerHTML": "http://weibo.com/u/3934163141" }, a); a.innerHTML += "
"; $$("a", { "href": "javascript:void(0)", "title": "点击进入意见反馈", "onclick": "U.M.StopBubble();U.M.divdoubleClick('UseStudioStudyControlDiv','8989bc55-6f36-44e8-8b1b-cc18486cf140',null ,null ,'SUB3c779543-bc1a-4851-af22-af9ba97a5f33')", "innerHTML": "进入反馈区域" }, a); } } }; U.D.R.AboutUS = function () { if ($("#UD_About")[0] == null) { var b = $$("div", { "style": { "width": "100%", "height": "100%" } }); var a = $$("div", { "style": { "marginLeft": "30%" }, "id": "UD_AboutUs", "onclick": [U.D.R.AboutChange, (["this"])], "className": "UD_PS_SO UD_PS_SO_R", "selectnum": "1", "value": "背景设置" }, b); $$("span", { "onclick": [U.MR.OptionGroupSelect, (["this"])], "style": { "color": "#fff", "fontWeight": "bold" }, "innerHTML": "关于我们" }, a); $$("span", { "onclick": [U.MR.OptionGroupSelect, (["this"])], "innerHTML": "加入我们" }, a); $$("span", { "onclick": [U.MR.OptionGroupSelect, (["this"])], "innerHTML": "联系我们" }, a); $$("i", { "className": "UF_S_Img Cloud" }, a); var d = $$("div", { "className": "UD_PS_C", "style": { "marginTop": "20px" }, "onselectstart": function () { U.M.StopBubble(); return true; } }, b); var c = $$("div", { "id": "UD_AboutUs_Content", "className": "UD_R_ABC" }, d); U.M.Window_Create([1, "50", "10%", "579", "420", "UD_About", "关于我们", "", b, "no", false, true, false, "background:url('/img/usestudiobackgroudnimage/beta1/bg12(1).jpg');"]); U.D.R.AboutChange(a); } U.D.PopupWindow($("#UD_About")[0]); U.D.Tb.WindowRestore($("#UD_About")[0], "", "关于我们"); }; U.D.R.XY = function () { if ($("#UDR_AM")[0] == null) { var a = $$("div", { "style": { "width": "100%", "height": "100%" } }); var c = $$("div", { "className": "UD_PS_C", "style": { "marginTop": "20px" }, "onselectstart": function () { U.M.StopBubble(); return true; } }, a); var b = $$("div", { "id": "UDR_AM_Content", "style": { "cssText": "margin:20px 50px; font-size:14px; line-height:25px; " } }, c); U.M.Window_Create([1, "50", "10%", "579", "420", "UDR_AM", "用户协议", "", a, "no", false, true, false, "background:url('/img/usestudiobackgroudnimage/beta1/bg12(1).jpg');"]); U.MD.DynamicLoad("/js/UU/U.U.C.js", "js", [[U.D.R.YJZ, ([b])]]); } U.D.PopupWindow($("#UDR_AM")[0]); U.D.Tb.WindowRestore($("#UDR_AM")[0], "", "用户协议"); U.M.StopBubble(); }; U.D.R.YJZ = function (a) { a.innerHTML = U.U.C.XY; }; Namespace.register("U.D.B"); U.D.B.SetLoginBGimg = function () { if (US.userInfo.UserBackGroundImage == null) { US.userInfo.UserBackGroundImage = "/img/usestudiobackgroudnimage/beta1/bg14.jpg"; } else { _TP = U.D.B.BGimgR(); $("#usestudiocontainer")[0].style.backgroundImage = ""; $("#BigBackGroundImg")[0].src = _TP[1]; U.D.BgShowWay(_TP[0]); } }; U.D.B.BGimgR = function () { var a = US.userInfo.UserBackGroundImage, b = a.lastIndexOf("/"); return [a.substr(b + 1), a.substr(0, b)]; }; U.D.B.windowCreate = function () { var a, b, d, c = $("#UD_PS")[0]; a = $$("div", { "id": "UD_PS_SO", "selectnum": "1", "value": "背景设置" }); b = $$("div", { "style": { "cssText": "height:77px;" } }, a); d = $$("div", { "style": { "cssText": "padding-left:60px; padding-top:20px;" } }, b); $$("span", { "id": "BGround", "onclick": [U.D.B.JudgeAnniu, ([a, "back"])], "className": "ud_bgset" }, d); $$("span", { "id": "UD_PS_BJ" }, d); $$("span", { "id": "ud_rightbtn", "className": "ud_bgrightbtn", "onclick": [U.D.B.JudgeAnniu, ([a, "next"])] }, d); $$("div", { "className": "UD_PS_C", "id": "UD_PS_C" }, a); c = U.M.Window_Create([1, "50", "10%", "575", "443", "UD_PS", "个性化设置", "", a, "no", false, true, false, "background:url(/img/settingWindow.jpg) no-repeat;"]); $("#UD_PS_SO").addAttrArray({ "selectnum": 2 }); U.D.B.JudgeAnniu(a, "back"); U.D.PopupWindow(c); U.D.Tb.WindowRestore(c, '', "个性化设置"); }; U.D.B.JudgeAnniu = function (g, h) { var f, e, b = parseInt(g.getAttribute("selectnum")), d = $("#UD_PS_C")[0], c = [[U.D.B.BackgroundLoad, "-11px -42px"], [U.D.B.Gainbackground, "-11px -81px"], [U.D.B.OtherLoad, "-198px -37px"]], a = U.M.GTCN(d.childNodes); for (f = 0; f < a.length; f++) { a[f].style.display = "none"; } (h == "next" && b < 3) && (e = true, b++); (h == "back" && b > 1) && (e = true, b--); $(g).addAttrArray({ "selectnum": b }); $("#UD_PS_BJ")[0].style.backgroundPosition = c[b - 1][1], c[b - 1][0](); }; U.D.B.BackgroundLoad = function () { var b, e, a, c = $("#UD_PS_C")[0], d = $("div#UD_PS_B", c)[0]; if (d) { d.style.display = "block"; } else { e = ["bg14", "bg9", "bg10", "bg11", "bg12", "bg13", "bg1", "bg2", "bg3", "bg4", "bg5", "bg6", "bg7", "bg8"]; a = $$("div", { "className": "UD_PS_B", "id": "UD_PS_B" }, c); for (b = 0; b < e.length; b++) { $$("img", { "className": "BG", "src": "/img/usestudiobackgroudnimage/beta1/" + e[b] + "(1).jpg", "onclick": [U.D.B.ChangeBackground, (["/img/usestudiobackgroudnimage/beta1/" + e[b] + ".jpg"])] }, a); } } }; U.D.B.OtherLoad = function () { var e, h, g, b, d, f = $("#UD_PS_C")[0], c = $("div#UD_PS_O", f)[0], a = ["是否开启标题栏提示", "是否开启提示音", "背景"]; if (c) { c.style.display = "block"; } else { c = $$("div", { "innerHTML": "", "className": "UD_PS_O", "id": "UD_PS_O" }); h = $$("div", { "className": "is_change" }, c); for (e = 0; e < a.length; e++) { g = $$("div", { "className": "UD_SCD" }, h); $$("span", { "className": "UD_SOS", "innerHTML": a[e] }, g); b = $$("div", { "id": "UD_PS_OTitle", "className": "U_OpSelect UD_PS_SO_r1", "style": e == 2 ? { "backgroundPosition": "-1px -180px", "width": "161px" } : { "backgroundPosition": "-179px -180px", "width": "110px" }, "selectnum": "1", "value": "OFF" }, g); $$("span", { "onclick": e == 2 ? [U.D.B.CSetBG, ["this", "Stretch"]] : [U.MR.OptionGroupSelect, ["this"]], "style": { "cssText": "color:#fff; width:45px; font-weight:bold;margin-left:12px;" }, "innerHTML": e == 2 ? "拉伸" : "OFF" }, b); $$("span", { "onclick": e == 2 ? [U.D.B.CSetBG, ["this", "Tile"]] : [U.MR.OptionGroupSelect, ["this"]], "style": { "cssText": "width:45px;" }, "innerHTML": e == 2 ? "平铺" : "ON" }, b); if (e == 2) { $$("span", { "onclick": [U.D.B.CSetBG, ["this", "Middle"]], "style": { "cssText": "color:#fff; width:45px; font-weight:bold;" }, "innerHTML": "居中" }, b); } $$("i", { "className": "U_OpSelectD" }, b); } f.appendChild(c); } if (US.userInfo.userid) { U.MR.OptionGroupSelect($("#ud_" + U.D.B.BGimgR()[0])[0]); } }; U.D.B.Gainbackground = function () { var k, c = $("#UD_PS_C")[0], e = $("#U_P_BGDiv")[0]; (e) && (c.removeChild(e)); if (US.userInfo.userid == null) { k = $$("div", { "className": "UD_PS_B", "id": "U_P_BGDiv" }); $$("img", { "src": "/img/ud_login.png", "onclick": [U.U.L.LAR], "alt": "请登录", "style": { "cssText": "margin-left:158px; margin-top:40px;" } }, k); c.appendChild(k); } else { var f, b, g, j, h, a, d = $("#ud_upbg")[0]; if (d) { c.removeChild(d); } d = $$("div", { "className": "ud_upbg", "id": "ud_upbg" }, c); $$("input", { "type": "file", "name": "upfile", "id": "UU_N_HeadImageInput", "accept": "image/gif, image/jpeg", "onchange": [U.D.B.onupfile, (["this"])], "className": "UD_uploadbg", "multiple": "true" }, d); g = $$("div", { "className": "UD_PS_B", "id": "U_P_BGDiv" }, c); j = U.Dk.M.seqencing(US.userInfo["UserBImage"]); for (f = 0; f < j.length; f++) { h = j[f]["UserDirectoryUrl"].replace("background-image:url(", "").replace(");", ""); b = $$("div", { "className": "UD_PS_B_UD", "style": { "cssText": "float:left; width:179px; height:130px; position:relative;" } }, g); $$("a", { "className": "UD_PS_DELEimg UD_PS_DE", "onclick": [U.D.B.deletePhoto, ([j[f].UserDirectoryID, b])] }, b); $$("img", { "className": "BG", "src": h, "onclick": [U.D.B.ChangeBackground, ([US.fs + j[f]["UserFilesServerName"]])], "onerror": [[U.M.ImgError, ([1])]] }, b); } } }; U.D.B.onupfile = function (b) { var c = b.parentNode, a = U.UP.SFT("P"); if (U.UP.UploadFileType(b, a)) { U.UP.uploading([b], U.D.B.UploadBackgrounShow, ([]), "http://disk.1473.cn/USupfile.ashx?iframename=ajaxlogin", true); c.appendChild(b); } else { U.UI.Confirm("只允许上传图片"); } }; U.D.B.UploadBackgrounShow = function (d) { var b, c, a = d.context; d = d.value; if (d) { for (b = 0; b < d.length; b++) { c = new U.Dk.M.Entity([d[b].UserFilesID, d[b].UserFilesSize, d[b].UserDirectoryID, d[b].UserFilesName.substring(0, 10) + "...", d[b].UserFilesName, d[b].UserFilesExtendName, d[b].UserFilesServerName, U.MT.GetDT(), US.fs + d[b].UseFilesServerThumbnailName, 99999, null, null, 1, ""]); U.Dk.M.ufinfoarray("add", c); U.Dk.RE.ARFO(c); US.userInfo["UserBImage"].push(c); } U.D.B.Gainbackground(); } }; U.D.B.deletePhoto = function (a, b) { U.UI.Confirm("确定删除背景图片吗?", [U.D.B.DLP, ([a, b])], ""); }; U.D.B.DLP = function (b, c) { var a = U.Dk.M.ufinfoarray("onefind", b); c.parentNode.removeChild(c); U.D.B.deleteBImag(b); U.Adisk.Request("UseStudioDisk.deleteDirectoryOrFile", ([US.userInfo.userid, b, 1]), U.Dk.RE.AsynDF, (["", a])); }; U.D.B.deleteBImag = function (b) { var a, c = US.userInfo["UserBImage"]; for (a = 0; a < c.length; a++) { if (c[a].UserDirectoryID == b) { c.splice(a, 1); } } }; U.D.B.CSetBG = function (a, b) { U.D.BgShowWay(b); if (US.userInfo.userid) { U.UI.Confirm("是否使用该类型摆放背景", [U.D.B.SetBGT, ([a, b])], [U.D.B.SetBGF]); } else { U.MR.OptionGroupSelect(a); } }; U.D.B.SetBGT = function (a, b) { U.MR.OptionGroupSelect(a); U.D.B.SaveBackground($("#BigBackGroundImg")[0].src, b); }; U.D.B.ChangeBackground = function (b) { var a = b + "?number=" + Math.random(); $("#BigBackGroundImg")[0].src = a; $("#usestudiocontainer")[0].style.backgroundImage = "url(" + a + ")"; (US.userInfo.userid != null) && (U.UI.Confirm("是否使用该背景!!", [U.D.B.SaveBackground, ([b])], [U.D.B.SetLoginBGimg])); }; U.D.B.SaveBackground = function (b, a) { if (US.userInfo.userid && b) { a = a || U.D.B.BGimgR()[0]; U.A.Request("UseStudioManage.SetUserBackgroudnImage", ([US.userInfo.userid, b, a]), U.M.apply(this, "U.Alert('保存成功')"), ([])); US.userInfo.UserBackGroundImage = b + "/" + a; } }; U.D.BgShowWay = function (b) { var d = $("#BigBackGroundImg")[0], c = $("#usestudiocontainer")[0], a; switch (b) { case "Tile": a = [{ "width": "100%", "height": "100%", "backgroundImage": "url('" + d.src + "')", "backgroundRepeat": "", "backgroundPosition": "" }, { "width": "0%", "height": "0%" }]; case "Middle": a[0]["backgroundRepeat"] = "no-repeat"; a[0]["backgroundPosition"] = "center center"; break; case "Stretch": a = [{ "backgroundImage": "" }, { "width": "100%", "height": "100%" }]; break; default: U.D.BgShowWay("Stretch"); break; } (a) && ($(c).addAttrArray({ "style": a[0] }), $(d).addAttrArray({ "style": a[1] })); }; Namespace.register("U.D.BC"); U.D.BC.BS = ["", false, null, { "": { "ID": US.NU, "L": 0 }, "UD_DiskCon": { "ID": US.NU, "L": 0 }, "UD_BlogCon": { "ID": US.NU, "L": 0 }, "UD_ChatCon": { "ID": US.NU, "L": 0 }, "UD_BBSCon": { "ID": US.NU, "L": 0 }, "UD_AppCon": { "ID": US.NU, "L": 0 } }, false]; U.D.BC.M = []; U.D.BC.GetMessage = function () { U.A.Request("UseStudioManage.Onload", ([US.NLInfo.LogAddr || "", US["ITID"]]), U.D.BC.AyMessage, ([""])); }; U.D.BC.AyMessage = function (b) { var a = b.context; b = b.value; if (b != null) { U.D.BC.BS[4] = true; U.D.BC.SetNews(b[1][0], true); _$(US.NLInfo).Add(b[2]); U.D.UTNews(US.NLInfo); U.D.PSU([b[1][1], b[1][2]]); if (b[1][0].length > 0) { setTimeout(U.D.BC.Chatdisplay, 5000); U.D.BC.BS[3][""]["ID"] = b[1][0][b[1][0].length - 1].NEWID; } } }; U.D.BC.Setmessage = function () { if (US.userInfo.userid == null) { U.Alert("登录了才可以聊天哦"); } else { var d = $("#UD_EnterBox")[0], a = $("#UD_ChatCon")[0], b = d.innerHTML.replace(new RegExp('"', "gm"), "'").SubN(); if (b.IsGEdit()) { U.D.BC.ChatBoxSwitchTab($("div", $("#UD_C_ChatTab")[0])[1]); var c = new U.D.T.CII([U.MS.produceGuid(), US.userInfo.userid, US.userInfo.UserNickName, US.userInfo.UserThumbnailImageHead, "UD_ChatCon", "", b, "", ""]); U.D.BC.M.push(c); U.D.BC.SetNews([c], true); d.innerHTML = ""; } } }; U.D.BC.NLGN = function () { if (U.D.BC.BS[4] && Guid.test(U.D.BC.BS[3][U.D.BC.BS[0]]["ID"])) { U.A.Request("UseStudioManage.GetAllChat", ([U.D.BC.BS[3][U.D.BC.BS[0]]["ID"], U.D.BC.BS[0], US["ITID"]]), U.D.BC.AsynNLGN, (["", U.D.BC.BS[0]])); } }; U.D.BC.AsynNLGN = function (b) { var a = b.context; b = b.value; if (b) { if (b[0].length > 0) { U.D.BC.SetNews(b[0], true); U.D.BC.BS[3][a[1]]["ID"] = b[0][b[0].length - 1].NEWID; } U.D.PSU([b[1], b[2]]); } }; U.D.BC.SetNews = function (g, c) { if (g.length > 0) { U.D.BC.BS[2] = U.D.BC.BS[2] == null ? { "UD_AllCon": $("#UD_AllCon")[0], "UD_ChatCon": $("#UD_ChatCon")[0], "UD_DiskCon": $("#UD_DiskCon")[0], "UD_BlogCon": $("#UD_BlogCon")[0], "UD_BBSCon": $("#UD_BBSCon")[0] } : U.D.BC.BS[2]; var e, b, d = U.D.BC.BS[2]["UD_AllCon"].parentNode.parentNode, f = false, a = $("div", U.D.BC.BS[2]["UD_AllCon"]), h = { "": [], "UD_DiskCon": [], "UD_BlogCon": [], "UD_ChatCon": [], "UD_BBSCon": [], "UD_AppCon": [] }; for (var e = 0; e < g.length; e++) { if ((g[e].UserId != US.userInfo.userid || U.D.BC.BS[1]) || c) { h[""].push(g[e]); h[g[e].NEWTYPE].push(g[e]); f = true; } } if (f) { for (e in h) { if (h.hasOwnProperty(e) && h[e].length > 0) { b = U.D.BC.BS[2][(e) || "UD_AllCon"]; U.D.BC.SNewS(b, h[e]); b.scrollTop = b.scrollHeight - b.offsetHeight; if (e != "" && (c != true || US.userInfo.userid == null)) { U.D.BC.BS[3][e]["ID"] = h[e][h[e].length - 1].NEWID; } } } if (h["UD_DiskCon"].length > 0) { U.Dk.DI.DTSJ(h["UD_DiskCon"]); } if (d.style.display == "none") { $("div", $("#UD_NUB_C")[0])[0].style.display = "block"; } } } }; U.D.BC.SNewS = function (d, g) { var e, n, l, b, f, k, j, c, m = d.childNodes, h = m.length + g.length, a = document.createDocumentFragment(); if (h > 100) { for (e = 0; (e < h - 100) && (e < m.length); e++) { d.removeChild(m[e]); } if (g.length > 100) { g = g.slice(g.length - 100, g.length); } } for (e = 0; e < g.length; e++) { l = $$("div", { "className": "UD_Chat_All" }, a); b = $$("div", { "className": "UD_Chat_Username", "innerHTML": "[" + (g[e].UserNickName || g[e].UserName) + "]" + "\t" + U.MT.GetDT(g[e].Time || new Date()), "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([g[e].UserId, "this"])]], "onmousedown": U.M.StopBubble, "oncontextmenu": [U.D.R.ChatBoxRightclick, ([g[e], "this"])] }, l); f = $$("div", { "className": "UD_Chat_UserContent UC_TF", "onselectstart": U.M.StopBubble }, l); k = $$("div", { "innerHTML": g[e].NEWC }, f); switch (g[e].NEWTYPE) { case "UD_DiskCon": $(k).addAttrArray({ "onclick": [[U.M.StopBubble], [U.Dk.NologinDiskDown, ([g[e].UserId, g[e].NEWT, true])]], "className": "UTDF", "title": "点击查看详情", "innerHTML": "上传了(" + g[e].NEWC + ")" }); break; case "UD_BlogCon": $(k).addAttrArray({ "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioBlogSystemDiv", null, g[e].UserId, null, g[e].NEWID])]], "className": "UTDF", "title": "点击查看详情", "innerHTML": "在博客分享-" + g[e].NEWT }); break; case "UD_BBSCon": $(k).addAttrArray({ "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioStudyControlDiv", null, "", null, g[e].NEWID])]], "className": "UTDF", "title": "点击查看详情", "innerHTML": "在论坛分享-" + g[e].NEWT }); break; default: break; } } d.appendChild(a); if (US.userInfo.userid) { U.D.BC.BS[1] = false; } }; U.D.BC.Chatdisplay = function () { var b = $("#UD_Chat")[0], a = (U.D.BC.BS[2] != null ? U.D.BC.BS[2][(U.D.BC.BS[0] || "UD_AllCon")] : $("#UD_AllCon")[0]); if (b.style.display == "block") { b.style.display = "none"; } else { $("#UD_Chatbottom")[0].style.display = "block"; U.D.BC.ChatBoxSwitchTab($("div", $("#UD_C_ChatTab")[0])[0]); U.D.PopupWindow(b); a.scrollTop = a.scrollHeight - a.offsetHeight; $("div", $("#UD_NUB_C")[0])[0].style.display = "none"; } U.M.StopBubble(); }; U.D.BC.ChatBoxCSH = function (b) { var a = b.parentNode; a.style.minHeight = "0px"; if (a.getAttribute("stat") == "display") { $("#UD_Chatbottom")[0].style.display = "none"; U.D.PB.VN; $(a).animate({ "height": "21px" }, 500, U.M.apply(this, [[U.D.BC.Shrink, ([a, a.clientHeight + "px"])]])); } else { $(a).animate({ "height": a.getAttribute("stat") }, 500, U.M.apply(this, [[U.D.BC.Stretch, ([a])]])); } }; U.D.BC.Shrink = function (a, b) { $("#UD_resize")[0].style.display = "none"; a.style.minHeight = "0px"; a.setAttribute("stat", b); }; U.D.BC.Stretch = function (a) { a.style.minHeight = "262px"; $("#UD_Chatbottom")[0].style.display = "block"; $("#UD_resize")[0].style.display = "block"; a.setAttribute("stat", "display"); }; U.D.BC.ChatBoxClose = function (a) { $(a).addAttrArray({ "style": { "minWidth": "0px", "minHeight": "0px" } }); $(a).animate({ "width": "0px", "height": "0px" }, 300, function () { $(a).addAttrArray({ "style": { "width": "380px", "height": "262px", "minWidth": "380px", "minHeight": "262px", "display": "none" } }); }); }; U.D.BC.ChatBoxSwitchTab = function (c) { var a = $("div", c.parentNode); for (var b = 0; b < a.length; b++) { if (a[b] == c) { c.style.backgroundPosition = " -80px -222px"; } else { a[b].style.backgroundPosition = "-134px -222px"; } } U.D.BC.ChatBoxDIS(c.getAttribute("value")); }; U.D.BC.ChatBoxDIS = function (b) { var a = U.M.GTCN($("#UD_content")[0].childNodes); for (var c = 0; c < a.length; c++) { if (b == a[c].id) { a[c].style.display = "block"; a[c].scrollTop = a[c].scrollHeight - a[c].offsetHeight; U.D.BC.BS[0] = a[c].id; U.D.BC.BS[0] = U.D.BC.BS[0] == "UD_AllCon" ? "" : U.D.BC.BS[0]; } else { if (a[c].style.display != "none") { a[c].style.display = "none"; } } } }; Namespace.register("U.D.CM"); U.D.CM.RP = {}; U.D.CM.CMSS = function (b, d) { var f = d * 10, c = f - 10, e = U.D.CM.RP[b], a = U.D.CM.AsynCO(b); (d == 1) && (a.innerHTML = ""); (e) && (_UICL = e.slice(c, f)); if (e) { U.D.CM.SetRPSS(_UICL, a); U.M.StopBubble(); U.Dk.RM.DRC(); } else { U.RY.Request("Reply", (["selectreply", b, c, 100]), U.D.CM.CMSG, ([a.parentNode, b, d, a])); } }; U.D.CM.CMSG = function (c) { var b = c.context; c = c.value; if (c) { var a = c[0]; if (a.length == 0) { b[3].onscroll = null; } else { (U.D.CM.RP[b[1]] == null) && (U.D.CM.RP[b[1]] = []); U.D.CM.RP[b[1]] = U.D.CM.RP[b[1]].concat(U.D.CM.QFOTP(a)); U.D.CM.CMSS(b[1], b[2]); } } }; U.D.CM.QFOTP = function (b) { var d, c, a = []; for (d = 0; d < b.length; d++) { if (b[d]["ReplyDeep"] == 1) { b[d]["NextP"] = []; a.push(b[d]); b.splice(d, 1); d--; } else { for (c = 0; c < a.length; c++) { if (a[c].ReplyID === b[d].ReplyBindingID) { a[c]["NextP"].push(b[d]); break; } } } } return a; }; U.D.CM.AsynCO = function (d) { var a = $("#USUR" + d)[0], g, f, c, e, b; if (a == null) { g = $$("div", { "className": "UD_CM_UPL" }); f = $$("div", { "className": "UD_CM_UVZD", "style": { "height": ((US.Height * 0.8) - 200) + "px" }, "onscroll": U.M.SSCH({ "AF": U.M.apply(null, [[U.D.CM.SFND, ([d])]]) }).SCH() }, g); c = $$("div", { "id": "UD_CM_UNR" }, f); e = $$("div", { "className": "UD_CM_UHF" }, g); b = $$("div", { "className": "UD_CM_HF_K" }, e); U.D.E.RichEditor(b, "", 85, false); $$("div", { "onclick": [U.D.CM.MR, [d, $("div@contenteditable=true", b)[0], 1, "", "", ""]], "className": "UD_CM_UHFR", "innerHTML": "发 表" }, e); $$("div", { "className": "UD_CM_USHHF", "innerHTML": "评论" }, g); U.M.Window_Create([1, "50", "10%", "750", "80%", "USUR" + d, "评论列表", "", g, "no", false, true, false, ""]); a = g.parentNode.parentNode.parentNode; } U.D.PopupWindow(a); U.D.Tb.WindowRestore(a, "", "评论列表"); return c || $("#UD_CM_UNR", a)[0]; }; U.D.CM.SetRPSS = function (f, h) { var d, b, c, a, g, e; for (d = 0; d < f.length; d++) { c = f[d]; a = U.D.CM.UOSS(c), g = $("div#UD_CM_URFV", a)[0]; for (b = 0; b < (c["NextP"] || { "length": 0 }).length; b++) { e = c["NextP"][b]; U.D.CM.UTSS(e, g); } h.appendChild(a); } }; U.D.CM.UOSS = function (f, d) { var i, b, e, a, g, c, h; i = $$("div", { "className": "UD_CM_HFPL", "id": "RPID" + f.ReplyID }, d); b = $$("div", {}, i); $$("img", { "className": "UD_CM_HFPLLImg", "onclick": [[top.U.U.I.POUW, ([f.UserID])]], "src": U.M.GetImgU(f.ReplyUserThumbnailImageHead), "onerror": [U.M.ImgError, (["retElement"])], "alt": "点击查看资料" }, b); $$("div", { "className": "UDK_L_DiskGE UD_CM_HFPLL" }, b); e = $$("div", { "className": "UD_CM_HFPLR " }, i); $$("div", { "title": "查看该用户", "className": "UD_CM_HFPLRUs", "innerHTML": f.UserName, "onclick": [[top.U.U.I.POUW, ([f.ReplyAddUserID])]] }, e); $$("div", { "className": "UD_CM_HFPLRVa", "innerHTML": " 发表評論:" }, e); $$("div", { "innerHTML": f.ReplyContent, "className": "UD_CM_OCT" }, e); $$("div", { "className": "UD_CM_OCRTT", "innerHTML": U.MT.GTS(f.ReplyAddTime) }, e); $$("div", { "className": "UD_CM_OCRTTX", "innerHTML": "來自" + (f.ReplyParentNickname || US.userInfo.LoginBrowser) }, e); $$("div", { "className": "UD_CM_OCRTTB", "style": { "color": "#3863dc" }, "onclick": [[U.D.CM.UTTP, ([f, e])]], "innerHTML": "回复" }, e); $$("div", { "className": "UD_CM_URFV", "id": "UD_CM_URFV" }, e); return i; }; U.D.CM.UTSS = function (d, b) { var a, f, e, c, e; a = $$("div", { "className": "UD_CM_HFPL" }, b); f = $$("div", { "className": "UD_CM_HFPLR", "style": { "marginRight": "22px", "marginLeft": "0" } }, a); $$("div", { "className": "UD_CM_HFPLRUs", "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([d.UserID])]], "innerHTML": d.UserName }, f); $$("div", { "className": "UD_CM_OCTE", "innerHTML": "回复了" }, f); $$("div", { "className": "UD_CM_HFPLRUs", "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([d.ReplyParentID])]], "innerHTML": "@" + d.UserName }, f); $$("div", { "className": "UD_CM_OCT", "innerHTML": d.ReplyContent }, f); $$("div", { "className": "UD_CM_OCRTT", "innerHTML": U.MT.GTS(d.ReplyAddTime) }, f); $$("div", { "className": "UD_CM_OCRTTX", "innerHTML": "來自" + (d.ReplyParentNickname || US.userInfo.LoginBrowser) }, f); $$("div", { "className": "UD_CM_OCRTTB", "onclick": [[U.D.CM.UTTP, ([d, a, true])]], "innerHTML": "回复" + "
" }, f); $$("div", { "className": "UDK_L_DiskGE UD_CM_HFPLLR" }, a); $$("img", { "className": "UD_CM_HFPLLImg", "onclick": [[top.U.U.I.POUW, ([d.UserID])]], "src": U.M.GetImgU(d.ReplyUserThumbnailImageHead), "onerror": [U.M.ImgError, (["this"])] }, a); return a; }; U.D.CM.UTTP = function (d, b, f) { var a = U.M.GetCById((f ? b.parentNode : b), "UD_CM_URFVB"), g, e, c; if (a == null) { a = $$("div", { "className": "UD_CM_HFPLInfos0", "id": "UD_CM_URFVB", "style": { "width": "100%" } }); g = $$("div", { "className": "UD_CM_URFVF" }, a); e = $$("div", { "contentEditable": "true", "id": "UD_CM_URFK", "className": "UF_FW_DEC UD_CM_URFK" }, g); $$("a", { "innerHTML": "@" + d.UserName, "onclick": [[U.U.I.POUW, ([d.UserId])]] }); c = $$("div", { "className": "UD_CM_HFPLInfo", "style": { "width": "105px", "height": "33px" } }, a); _UDND = $$("div", { "unselectable": "on", "className": "UD_PiLt UF_FW_face", "title": "表情", "onmousedown": [[U.D.E.GetSelectionRange, ([window, e, { "TF": "HF" }])]], "onclick": [[U.D.E.CreateSf, (["ChattingFaceDiv", null, "this", window, e, "HF"])]] }, c); $$("div", { "className": "UD_CM_HFPLInfo UD_CM_URFVR", "style": { "width": "53px", "height": "25px" }, "onclick": [[U.D.CM.MR, ([d.FileID, e, 2, (d["ReplyBindingID"] || d["ReplyID"]), d["UserID"], d["UserName"]])], [U.D.CM.BNPE, ([e])]], "innerHTML": "发表" }, c); f ? (b.nextSibling ? b.parentNode.insertBefore(a, b.nextSibling) : b.appendChild(a)) : b.insertBefore(a, b.lastChild); } else { a.style.display = a.style.display == "none" ? "block" : "none"; } $("div#UD_CM_URFK", a)[0].focus(); return a; }; U.D.CM.BNPE = function (a) { a.parentNode.parentNode.style.display = "none"; }; U.D.CM.SFND = function (a, b) { U.D.CM.CMSS(a, b, this.P + 2); }; U.D.CM.TCM = function (a) { this.FileID = a[0]; this.UserID = a[1]; this.UserName = a[2]; this.ReplyID = a[3]; this.ReplyContent = a[4]; this.ReplyAddTime = a[5]; this.ReplyIP = a[6]; this.ReplyAddress = a[7]; this.ReplyDeep = a[8]; this.ReplyUserThumbnailImageHead = a[9]; this.ReplyBindingID = a[10]; this.ReplyParentID = a[11]; this.ReplyParentNickname = a[12]; }; U.D.CM.MR = function (i, d, a, f, h, g) { var c = d.innerHTML.SubN().Trim(); if (!c) { U.Alert("请输入内容"); return; } var b = [i, US.userInfo.userid, US.userInfo.UserNickName, U.MS.produceGuid(), c, new Date(), US.userInfo.LoginIP, US.userInfo.LoginAddress, a, US.userInfo.UserThumbnailImageHead, f, h, g || US.userInfo.LoginBrowser]; var e = new U.D.CM.TCM(b); b.splice(5, 1); b.unshift("insertreply"); d.innerHTML = ""; U.RY.Request("Reply", (b), U.D.CM.AsynMR, (["", e])); }; U.D.CM.AsynMR = function (d) { var c = d.context; d = d.value; if (d !== false) { var f, a, b, e = c[1]["FileID"]; if (c[1]["ReplyBindingID"]) { b = U.D.CM.GetOL(e, c[1]["ReplyBindingID"]); b["NextP"].unshift(c[1]); a = U.D.CM.UTSS(c[1]), f = $("div#UD_CM_URFV", $("#RPID" + c[1]["ReplyBindingID"])[0])[0]; } else { (U.D.CM.RP[e] == null) && (U.D.CM.RP[e] = []); c[1]["NextP"] = []; U.D.CM.RP[e].unshift(c[1]); a = U.D.CM.UOSS(c[1]), f = $("div#UD_CM_UNR", $("#USUR" + e)[0])[0]; } f.insertBefore(a, f.firstChild); } }; U.D.CM.GetOL = function (d, b) { var c, a, e = U.D.CM.RP[d]; for (c = 0; c < e.length; c++) { if (e[c]["ReplyID"] == b) { a = e[c]; } } return a; }; Namespace.register("U.D.G"); U.D.G.UrlGuide = function () { var a = U.M.GetUF(); if (a) { if (a[2]) { var b = a[3] || ""; if (a[1] == "pb" || a[1] == "tg" || a[1] == "file") { U.D.G.Guide(a[1], null, (b == "" ? a[2] : "")); } else { U.A.Request("UseStudioManage.GetUserIdByUsername", ([a[2]]), U.D.G.AsynUrlGuide, (["", a[1], b])); } } else { if (a[1] != "") { U.D.G.Guide(a[1]); } } } }; U.D.G.AsynUrlGuide = function (b) { var a = b.context; b = b.value; U.D.G.Guide(a[1], b, a[2]); }; U.D.G.Guide = function (d, a, c) { var b = true; switch (d) { case "disk": case "photo": case "video": c = d == "disk" ? US.DG : (d == "photo" ? US.PG : US.VG); U.M.divdoubleClick("UseStudioUserDiskDiv", c, a, null); break; case "file": U.Dk.GetDsikFID(c); break; case "music": U.M.divdoubleClick("UseStudioU_MP", "", a, null); break; case "blog": U.M.divdoubleClick("UseStudioBlogSystemDiv", null, a, null, c); break; case "pb": U.M.divdoubleClick("UseStudioStudyControlDiv", "", null, null, c); break; case "app": U.M.divdoubleClick("US_Manage_App_Mark", "", "", null); break; case "tg": if (Guid.test(c)) { U.CI.GCUInfo(U.M.apply(this, [[U.U.GZ.AddUr, ([c])]])); } b = false; break; case "Office": break; default: break; } if (b && Guid.test(a)) { U.CI.GCUInfo(U.M.apply(this, [[U.U.GZ.AddUrID, ([a])]])); } }; U.D.G.UrlWrite = function (b, a) { document.location.hash = "!/" + b; document.title = a + " - 云操作系统"; }; Namespace.register("U.D.GG"); U.D.GG.GN = function (a, c) { var b = $("#UD_GG")[0]; if (b.style.display == "block" && c == null) { b.style.display = "none"; } else { if (US.PB.TZGG[a]) { U.D.GG.DisGN(US.PB.TZGG[a], b); } else { U.PB.Request("pb.SearchNoticeInfo", ([a]), U.D.GG.GN_CB, (["", a])); } } }; U.D.GG.GN_CB = function (b) { var a = b.context; b = b.value; US.PB.TZGG[a[1]] = b; U.D.GG.GN(a[1], true); }; U.D.GG.DisGN = function (b, g) { var a, d, f = $("#UD_Notice")[0], e = $("div", g)[1], c = document.createDocumentFragment(); e.innerHTML = ""; for (d = 0; d < b.length; d++) { a = $$("div", { "className": "UD_GGCA", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioStudyControlDiv", "8989bc55-6f36-44e8-8b1b-cc18486cf140", null, null, "ART" + b[d].ArticleID])]], "innerHTML": b[d].ArticleTitle }, c); } e.appendChild(c); U.D.SetDTop(($(g).addAttrArray({ "style": { "display": "block", "left": (f.offsetLeft + 35) + "px", "top": (f.offsetTop + 50) + "px" } })[0])); }; U.D.GG.GL = function (a, e) { var d = $("#UD_GG_NL")[0], c = $("#UD_NL_FO")[0], b = U.D.T.SF("GetNews", ([a])); if (e) { U.D.PopupWindow(d); } else { U.D.SetDTop(d); } if (b) { U.D.GG.PGetPic(b, c); } else { U.PB.Request("pb.GetPicturesArticle", (["8"]), U.D.GG.GetPic, ([c, a])); } }; U.D.GG.GetPic = function (b) { var a = b.context; b = b.value; if (b) { U.D.T.SF("AddNews", b); U.D.GG.GL(a[1]); } }; U.D.GG.PGetPic = function (c, b) { var a, f, g, e, d = document.createDocumentFragment(); b.innerHTML = ""; if (c.length > 0) { for (e = 0; e < c.length; e++) { if (e == c.length - 1) { g = $$("div", { "className": "UD_GG_NL_pic" }, d); $$("iframe", { "frameBorder": 0, "marginheight": "0", "scrolling": "no", "marginwidth": "0", "className": "UD_NL_FO_GG", "src": "/usercontrols/pages/UD_AD_Medium.htm" }, g); break; } a = U.D.GG.GetOImgS(c[e].ArticleContent); f = $$("div", { "className": "UD_GG_NL_pic", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioStudyControlDiv", "8989bc55-6f36-44e8-8b1b-cc18486cf140", null, null, c[e].ArticleID])]] }, d); $$("img", { "src": a, "className": "UD_NL_FO_IM", "onerror": [U.M.ImgError, (["this", 1])] }, f); $$("div", { "className": "UD_GG_TIT", "title": c[e].ArticleTitle, "innerHTML": c[e].ArticleTitle }, f); } b.appendChild(d); } else { $$("div", { "className": "UD_NL_Not", "innerHTML": "暂时没有新闻" }, b); } }; U.D.GG.GetOImgS = function (b) { var a = $$("div", { "innerHTML": b }); return $("img", a)[0].src; }; Namespace.register("U.D"); U.M.CreateControl = function (a) { var b; switch (a) { case "US_Manage_DisplayFileArea": b = [0, "6%", "10%", "70%", "70%", "US_Manage_DisplayFileArea", "文件浏览", "US_Manage_DisplayFileAreaIframe", "/userpages/UD_XZ.aspx", "auto", true, true, true, false]; break; case "UseStudioStudyControlDiv": b = [0, "3%", "3%", "95%", "95%", "UseStudioStudyControlDiv", "论坛", "UseStudioStudyControlDivIframe", "", "auto", true, true, true, false]; break; case "UseStudioBlogSystemDiv": b = [0, "3%", "3%", "95%", "95%", "UseStudioBlogSystemDiv", "博客,可任意定制分类,并可把满意的文章发布到学习系统", "UseStudioBlogSystemIframe", "", "auto", true, true, true, false]; break; case "US_Manage_SearchDiv": b = [0, "5%", "5%", "70%", "80%", "US_Manage_SearchDiv", "搜索管理", "US_Manage_Searchiframe", "", "auto", true, true, true, false]; break; case "US_Manage_App_Mark": b = [0, "15%", "26%", "75%", "85%", "US_Manage_App_Mark", "应用", "US_Manage_Out_AppIframe", "", "auto", true, true, true, false]; break; case "US_Manage_SiteOutAppDiv": b = [0, "5%", "5%", "80%", "85%", "US_Manage_SiteOutAppDiv", "游戏", "US_Manage_Searchiframe", "http://play.1473.cn", "auto", true, true, true, false]; break; case "US_Manage_LocateFrinedsDiv": b = [0, "6%", "30%", "52%", "85%", "US_Manage_LocateFrinedsDiv", "好友", "US_locateFriendsiframe", "", "auto", true, true, true, false]; break; case "UseStudioAPIDiv": b = [0, "50", "10%", "70%", "80%", "UseStudioAPIDiv", "有思API", "UseStudioAPIDivIframe", "", "auto", true, true, true, false]; break; case "UseStudioBrowserDiv": b = [0, "50", "10%", "70%", "80%", "UseStudioBrowserDiv", "有思浏览器", "UseStudioBrowserDivIframe", "/usercontrols/UD_B.htm", "auto", true, true, true, false]; break; case "US_Manage_App_Open": b = [0, "10%", "20%", "90%", "80%", "US_Manage_App_Open", "站外应用", "US_Manage_Out_AppOpeniframe", "", "auto", true, true, true, true, true]; break; case "US_Excel": b = [0, "0%", "0%", "100%", "100%", "US_Excel", "表格", "US_ExcelFrame", "", "no", true, true, true, false]; break; case "US_Word": b = [0, "0%", "0%", "100%", "100%", "US_Word", "文档编辑", "US_WordFrame", "", "no", true, true, true, false]; break; case "UD_DK_YX": b = [0, "0%", "0%", "100%", "100%", "UD_PG", "游戏中心", "UD_PGFrame", "", "auto", true, true, true, false]; break; } if (b) { return [U.M.Window_Create(b), b]; } }; U.M.Window_Create = function (a) { var b = $("#" + a[5])[0]; if (b == null) { b = U.UI.UForms({ "Embed": a[0], "Top": a[1], "Left": a[2], "Width": a[3], "Height": a[4], "ContainerId": a[5], "titleName": a[6], "ContentId": a[7], "Content": a[8], "hasScroll": a[9], "hasMax": a[10], "hasMin": a[11], "hasDraw": a[12], "CStyle": a[13], "IsR": a[14] }); $("body")[0].appendChild(b); } return b; }; U.M.divdoubleClick = function (g, i, d, m, l, j) { if (U.D.MoveCase) { U.D.MoveCase = false; return false; } if (l == true) { window.open(j); U.D.R.DesktopLeftClick(); return; } else { var n, h, e, c, f = US.userInfo.userid || "", b = U.M.CreateControl(g); d = d || f; (b) && (n = b[0], e = $("iframe", n), e = e[e.length - 1]); switch (g) { case "UD_PG": h = "http://d.1473.cn"; case "UM_WZDH": (h == null) && (h = "/userpages/UD_WZ.aspx"); case "UM_Shop": (h == null) && (h = "/userpages/UD_Taobao.aspx"); case "UM_GW": (h == null) && (h = "http://ai.taobao.com/?pid=mm_32325420_3265865_10712530&eventid=101329"); U.M.DJTC(h); break; case "UseStudioAPIDiv": case "UD_DK_YX": case "US_Manage_DisplayFileArea": h = [null, [[U.MD.uploading, ([e.parentNode])]]]; case "UseStudioBrowserDiv": (h == null) && (h = [null, [[U.MD.uploading, ([e.parentNode])], ['top.window.frames["UseStudioBrowserDivIframe"].U.D.BR.AddUrl', ([i])]]]); case "US_Manage_App_Mark": (h == null) && (h = ["http://app.1473.cn/Application.aspx"]); case "UseStudioBlogSystemDiv": (h == null) && (h = ["http://blog.1473.cn/Myboards.aspx?NavigatePath=" + "&userguid=" + d + "&ArticleId=" + (l || ""), [["window.frames['UseStudioBlogSystemIframe'].U.B.G.BlogOnload", ([i || "", d, (l || "")])]]]); case "UseStudioStudyControlDiv": (h == null) && (h = ["http://pb.1473.cn/PublicBoards.aspx?NavigatePath=" + l, [["window.frames['UseStudioStudyControlDivIframe'].U.BB.Navigateonload", ([l || ""])]]]); case "US_Excel": (h == null) && (h = ["/Office/U_Excel.aspx", [["window.frames['US_ExcelFrame'].U.Excel.OPBE", ([i, null, d])]], true]); case "US_Word": (h == null) && (h = ["/Office/U_Word.aspx", [["window.frames['US_WordFrame'].U.Word.OPBW", ([i, true, d])]], true]); U.M.BBCL(n, e, h); break; case "mouseroverNote": h = U.D.N.NoteSwitch; case "UD_DK_IC": (h == null) && (h = U.U.P.LoginIC); case "Chat": (h == null) && (h = U.F.A.ISFriend); if (!U.U.L.LARG()) { h(d); } break; case "UseStudioUserDiskDiv": U.Dk.NologinDiskDown(d, i, d); break; case "UseStudioU_MP": c = U.MPlayer.Close; if (d == "") { U.Dk.NologinDiskDown(US.NU, i); return; U.M.apply(this, [[U.MPlayer.Posmove, ([this])]]); } else { U.Dk.Om(d); } break; case "US_Manage_App_Open": var k = $("span", n)[0], a = l || U.D.T.SF("GetIc", [i]); n.style.display = "block"; k.innerHTML = a.ApplicationName || a.Description; b[1][6] = k.innerHTML = k.innerHTML.length > 8 ? k.innerHTML.substr(0, 8) + "..." : k.innerHTML; e.src = j; U.MD.loading(e.parentNode); U.MD.IframeLoad(e, [[U.MD.uploading, ([e.parentNode])]]); U.M.StopBubble(); break; } if (n) { U.D.PopupWindow(n); U.D.Tb.WindowRestore(n, m, b[1][6], c); } } }; U.M.DJTC = function (a) { window.open(a); }; U.M.BBCL = function (a, e, d) { var b = true, c = [[]]; a.style.display = "block"; if (d[0] != null && e.src == "/" || e.src == "") { c[0] = [U.MD.uploading, ([e.parentNode])]; U.MD.loading(e.parentNode); e.src = d[0]; b = false; } (d[1] && (d[2] || b)) && (c = c.concat(d[1])); U.MD.IframeLoad(e, c); }; Namespace.register("U.D.MS"); U.D.MS.onetimer = null; U.D.MS.onesetInterval = function (a) { var c = US.userInfo != null ? US.userInfo.userid : "", e = [$("div", $("#UD_UTT")[0])]; clearInterval(U.D.MS.onetimer); if (a == 0) { var b = 0; U.D.MS.onetimer = setInterval(function () { b++; if (b % 12 == 0) { U.D.Time(e); } U.D.BC.NLGN(); }, 5000); } else { if (a == 1) { var d = 0; U.D.MS.onetimer = setInterval(function () { d++; if (d % 5 == 0) { d = 0; U.F.N.GNM(c); } if (d % 60 == 0) { U.D.Time(e); } U.F.N.NMC(); }, 1000); } } }; U.D.MS.SetTimeout = function () { }; Namespace.register("U.D.N"); U.D.N.NoteSwitch = function () { var a = $("#UD_NP_container")[0]; if (US.userInfo.userNotepad == null) { U.A.Request("UseStudioManage.selectNotePadContent", ([US.userInfo.userid]), U.D.N.NoteAnsy, ([""])); } U.D.PopupWindow(a); }; U.D.N.NoteAnsy = function (b) { var a = b.context; b = b.value; US.userInfo.userNotepad = (b == "(null)" || b == undefined || b == "undefined") ? "" : b; $("#UD_NP_mouseroverNote")[0].innerHTML = US.userInfo.userNotepad; U.D.N.NoteSwitch(); }; U.D.N.NotePadUser = function () { var a = $("#UD_NP_mouseroverNote")[0]; if (US.userInfo.userNotepad != a.innerHTML) { US.userInfo.userNotepad = a.innerHTML; U.A.Request("UseStudioManage.inserNotePadContent", ([US.userInfo.userid, US.userInfo.userNotepad]), U.M.apply(this, 'function () { U.Alert("保存成功"); }')); } }; Namespace.register("U.D.PB"); U.D.PB.VN = function (c) { if (!U.U.L.LARG()) { var b = $("#UD_GG_BN"), a = $("#UD_Notice")[0]; if (b[0].style.display == "block") { b[0].style.display = "none"; } else { U.D.SetDTop((b.addAttrArray({ "style": { "display": "block", "left": (a.offsetLeft - 175) + "px", "top": (a.offsetTop + 50) + "px" } })[0])); } } }; U.D.PB.CSNT = function (d, e) { var b, c = $("div", d), a = e ? ["UD_GG_BNTTT", "UD_GG_BNTTO"] : ["UD_GG_BNTTO", "UD_GG_BNTTT"]; for (b = 0; b < a.length; b++) { c[b].className = a[b]; } U.D.PB.CPBN(e); }; U.D.PB.CPBN = function (j) { var l, b, g, f, e, k = j ? US.PB.News[1] : US.PB.News[0], a = document.createDocumentFragment(), h = $("#UD_GG_BNC")[0], c = $("#UD_GG_BNBR"); h.innerHTML = ""; if (k.length > 0) { for (var d = 0; d < k.length; d++) { l = $$("div", { "className": "UD_GG_BNCA" }, a); b = $$("div", { "className": "UD_GG_BNCAO", "title": "点击查看用户", "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([k[d].ReplyAddUserID])]] }, l); $$("img", { "className": "UD_Radius", "src": U.M.GetImgU(k[d].UserThumbnailImageHead) }, b); g = $$("div", { "className": "UD_GG_BNCAT" }, l); $$("div", { "className": "UD_GG_BNCATN", "innerHTML": k[d].UserNickName }, g); $$("div", { "className": "UD_GG_BNCATT UTDF", "title": "点击查看", "innerHTML": k[d].ArticleTitle, "onclick": [[U.M.StopBubble], (j ? [] : [U.D.PB.LN, ([[k[d].ArticleID], 2, 0, 1, k, j])]), [U.M.divdoubleClick, (["UseStudioBlogSystemDiv", null, US.userInfo.userid, "", k[d].ArticleID])]] }, g); $$("div", { "className": "UD_GG_BNCATC UTDF", "title": "点击查看", "innerHTML": k[d].ArticleContentBrief, "onclick": [[U.M.StopBubble], (j ? [] : [U.D.PB.LN, ([[k[d].ArticleID], 2, 0, 1, k, j])]), [U.M.divdoubleClick, (["UseStudioBlogSystemDiv", null, US.userInfo.userid, "", k[d].ArticleID])]] }, g); f = $$("div", { "className": "UD_GG_BNCAR" }, l); $$("div", { "className": "UD_GG_BNCARC UD_ICON UD_W_TB_WM_Close", "title": j ? "删除提示" : "设为已读", "onclick": [[U.D.PB.CMNS, ([k[d].ArticleID, j])]] }, f); } c.addAttrArray({ "innerHTML": j ? "清空所有数据" : "全部设为已读", "onclick": [[U.D.PB.CMNS, ([k, j])]] }); } else { $$("div", { "className": "UD_GG_BN_NO", "innerHTML": "暂无消息" }, a); c.addAttrArray({ "innerHTML": "", "onclick": null }); } h.appendChild(a); if (j == null) { if (k.length > 0) { $("div", $("#UD_NUB_PB")[0])[0].style.display = "block"; } else { } } }; U.D.PB.CMNS = function (a, e) { var c, b = [], d = e ? [US.PB.News[1], 2, 2] : [US.PB.News[0], 0, 1]; if (typeof a == "string") { b.push(a); } else { for (c = 0; c < a.length; c++) { b.push(a[c].ArticleID); } } U.D.PB.LN(b, e ? 4 : 2, d[1], d[2], d[0], e); }; U.D.PB.LN = function (h, a, c, e, k, f) { var d, b, g; k = k || US.PB.News[0]; for (d = 0; d < h.length; d++) { for (b = 0; b < k.length; b++) { if (k[b].ArticleID == h[d]) { g = k.splice(b, 1)[0]; break; } } if (a == 2) { if (g) { US.PB.News[1].unshift(g); } } } h = U.MS.SerializeJsonToStr(h); U.A.Request("UseStudioManage.ChangeMoreNewsState", ([h, c, e, a]), U.M.apply(), ([])); if (f == null) { f = US.PB.News[0].length == 0 ? true : null; (f) && ($("div", $("#UD_NUB_PB")[0])[0].style.display = "none"); } UD_GG_BNTT($("#UD_GG_BNTT")[0], f); }; Namespace.register("U.D.T"); U.D.T.News; U.D.DestopStr; U.D.icon_list; U.D.T.SF = function (a, b) { switch (a) { case "AddNews": U.D.T.AddNews(b); break; case "GetNews": return U.D.T.GetNews(b); break; case "GetIc": return U.D.T.GetDI(b); break; case "AddTG": break; default: break; } }; U.D.T.AddNews = function (a) { U.D.T.News = a; }; U.D.T.GetNews = function (b) { var c = []; if (U.D.T.News) { for (var a = 0; a < U.D.T.News.length; a++) { if (U.D.T.News[a].PublishedDirectoryID == b[0]) { c.push(U.D.T.News[a]); } } return c; } }; U.D.T.GetDI = function (c) { var a = US.userInfo["icon"] || U.D.DestopStr; for (var b = 0; b < a.length; b++) { if (a[b].ApplicationID == c[0]) { return a[b]; } } }; U.D.T.Entity = function (a) { this.ApplicationID = a[0]; this.UserDirectoryID = a[1]; this.ApplicationName = a[2]; this.ApplicaitonUrl = a[3]; this.ApplicaitonImg = a[4]; this.AppNewWin = a[5]; }; U.D.T.displayDesktop = function () { U.D.DestopStr = [{ "ApplicationID": "7aeaab56-485f-4150-b781-8ffd86d593ce", "UserDirectoryID": "", "ApplicationName": "网盘", "ApplicaitonUrl": "UseStudioUserDiskDiv", "ApplicaitonImg": { "x": -304, "y": -20 } }, { "ApplicationID": "93553847-e299-464c-a0e2-c15872efb6ae", "UserDirectoryID": "", "ApplicationName": "相册", "ApplicaitonUrl": "UseStudioUserDiskDiv", "ApplicaitonImg": { "x": -88, "y": -92 } }, { "ApplicationID": "8a2135ff-746a-43a8-97b8-552d228a00bb", "UserDirectoryID": "", "ApplicationName": "音乐", "ApplicaitonUrl": "UseStudioUserDiskDiv", "ApplicaitonImg": { "x": -16, "y": -20 } }, { "ApplicationID": "1e0742d8-737e-46e2-b03b-2f23ca8c1f17", "UserDirectoryID": "", "ApplicationName": "博客", "ApplicaitonUrl": "UseStudioBlogSystemDiv", "ApplicaitonImg": { "x": -88, "y": -20 } }, { "ApplicationID": "8989bc55-6f36-44e8-8b1b-cc18486cf140", "UserDirectoryID": "", "ApplicationName": "论坛", "ApplicaitonUrl": "UseStudioStudyControlDiv", "ApplicaitonImg": { "x": -160, "y": -20 } }, { "ApplicationID": "0085d7d9-a5aa-4785-b914-05136e3f4bf0", "UserDirectoryID": "", "ApplicationName": "应用", "ApplicaitonUrl": "US_Manage_App_Mark", "ApplicaitonImg": { "x": -160, "y": -92 } }, { "ApplicationID": "0d0686f0-b3df-429b-a586-db5899118ec5", "UserDirectoryID": "", "ApplicationName": "便签", "ApplicaitonUrl": "mouseroverNote", "ApplicaitonImg": { "x": -232, "y": -92 } }, { "ApplicationID": "", "UserDirectoryID": "", "ApplicationName": "文档编辑", "ApplicaitonUrl": "US_Word", "ApplicaitonImg": { "x": -232, "y": -20 } }, { "ApplicationID": "", "UserDirectoryID": "", "ApplicationName": "工作表", "ApplicaitonUrl": "US_Excel", "ApplicaitonImg": { "x": -232, "y": -20 } }, { "ApplicationID": "6DB2FD18-B8E0-075A-605F-F3FB928FE7AB", "UserDirectoryID": "", "ApplicationName": "购物", "ApplicaitonUrl": "UM_GW", "ApplicaitonImg": { "x": -232, "y": -20 } }, { "ApplicationID": "5312340d-a802-a8c6-f80a-000000000000", "UserDirectoryID": "", "ApplicationName": "积分中心", "ApplicaitonUrl": "UD_DK_IC", "ApplicaitonImg": { "x": -232, "y": -20 } }, { "ApplicationID": "6DB2FD18-B8E0-075A-605F-000000000000", "UserDirectoryID": "", "ApplicationName": "Use聊", "ApplicaitonUrl": "Chat", "ApplicaitonImg": { "x": -232, "y": -20 } }, { "ApplicationID": "DA0EEA4E-AD61-4F2A-8DB1-3ADF0A506C86", "UserDirectoryID": "", "ApplicationName": "在线编程", "ApplicaitonUrl": "UD_PG", "ApplicaitonImg": { "x": -232, "y": -20 } }]; }; U.D.T.CII = function (a) { this.NEWID = a[0]; this.UserId = a[1]; this.UserName = a[2]; this.UserThumbnailImageHead = a[3]; this.NEWTYPE = a[4]; this.NEWT = a[5]; this.NEWC = a[6]; this.Time = a[7]; this.ET = a[8]; }; Namespace.register("U.D.Tb"); U.D.Tb.WindowRestore = function (f, g, b, e, c) { if ($("#UD_BB_Restore" + f.id)[0] == null) { g = g || ''; var d = $("#UD_BB_BAB_Content")[0]; var a = $$("li", { "id": "UD_BB_Restore" + f.id, "className": "UD_BB_App", "title": "移出框外关闭应用" }, d); a.remove = U.M.apply(this, [[U.D.Tb.PopupWinClose, ([f, c, e])]]); if (b) { if (b.length > 6) { g += '", $(a).addAttrArray({ "onmouseover": "$('marquee',this)[0].stop()", "onmouseout": "$('marquee',this)[0].start()" }); } else { g += "" + b + "
"; } } else { g += "" + b + "
"; } a.innerHTML = g; U.D.Tb.DragRestore(a, f); top.$("#WinMinsCount")[0].innerHTML++; } }; U.D.Tb.winmins = function (b) { var a = $("#UD_BB_BAB"); if (a[0].style.display == "block") { a[0].style.display = "none"; } else { U.D.SetDTop((a.addAttrArray({ "style": { "left": b.offsetLeft - 150 + "px", "display": "block" } }))[0]); } }; U.D.Tb.AllClear = function () { var c = $("#UD_BB_BAB_Content")[0]; var a = $("li", c); for (var b = 0; b < a.length; b++) { a[b].remove(); } }; U.D.Tb.PopupWinClose = function (c, a, b) { U.D.Tb.TaskbarClose(c); U.D.CloseWindow(c, a); if (b) { b(); } }; U.D.Tb.TaskbarClose = function (b) { var a = $("#UD_BB_Restore" + b.id)[0]; if (b != null && a != null) { a.parentNode.removeChild(a); $("#WinMinsCount")[0].innerHTML--; } }; U.D.Tb.changeRestoreName = function (b, e) { var c = $("#" + "UD_BB_Restore" + b)[0]; if (c) { var d = $("marquee", c)[0]; var a = $("div", c)[1]; if (e.length > 6) { if (d) { d.innerHTML = e; } else { c.removeChild(a); $$("marquee", { "className": "UD_BB_marquee", "behavior": "alternate", "scrollamount": "3", "innerHTML": e }, c); c.addAttrArray({ "onmouseover": "$('marquee',this)[0].stop()", "onmouseout": "$('marquee',this)[0].start()" }); } } else { if (d) { c.removeChild(d); $$("div", { "innerHTML": e }); } else { a.innerHTML = e; } } } }; U.D.Tb.DragRestore = function (a, b) { a.onmousedown = function () { var c = U.M.GetMousep(); var f = U.M.GetElementInfo(a); var e = U.M.GetElementInfo(a.parentNode.parentNode); var d = a.cloneNode(true); d.className += " UD_BB_CI"; document.body.appendChild(d); d.setCapture(); document.onmousemove = function () { var g = U.M.GetMousep(); $(d).addAttrArray({ "style": { "left": (g.X - (c.X - f["BCRL"])) + "px", "top": (g.Y - (c.Y - f["BCRT"])) + "px" } }); }; document.onmouseup = function () { var g = U.M.GetMousep(); if (c.X == g.X && c.Y == g.Y) { b.style.display = "block"; U.D.SetDTop(b); document.onclick(); } else { if (g.X < e["BCRL"] || g.Y > e["BCRB"] || g.Y < e["BCRT"] || g.X > e["BCRR"]) { a.remove(); document.onclick(); } } d.releaseCapture(); document.onmouseup = document.onmousemove = null; document.body.removeChild(d); }; U.M.StopBubble(); }; }; Namespace.register("U.D"); U.D.UDMB; U.D.UDOS; U.D.prinetic = function () { var c = U.D.UDMB = U.D.UDMB || $("#UD_MBoard")[0]; var b = U.D.UDOS = U.D.UDOS || $("span", c); for (var a = 0; a < b.length; a++) { U.LC["dkA"].push($("div", b[a])[2]); b[a].onmousedown = U.M.apply(this, [[U.M.StopBubble], [U.D.RGL, ([b[a], U.D.DestopStr[a]])]]); b[a].onclick = U.M.apply(this, [[U.M.divdoubleClick, ([U.D.DestopStr[a].ApplicaitonUrl, U.D.DestopStr[a].ApplicationID, "", $("div", b[a])[1].outerHTML, U.D.DestopStr[a].AppNewWin])]]); } U.D.IconRank(); }; U.D.loginic = function (c) { var b = U.D.UDMB; for (var a = 0; a < c.length; a++) { U.D.AddApp(c[a], b); } U.D.UDOS = $("span", b); U.D.IconRank(); }; U.D.AddApp = function (c, b) { var d, a, e; d = $$("span", { "className": " UD_NUB_app", "onmousedown": [[U.M.StopBubble], [U.D.RGL, (["this", c])]], "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["US_Manage_App_Open", c.ApplicationID, "", "$('div',this)[1]", c.AppNewWin, c.ApplicaitonUrl]]] }, b); a = $$("div", { "className": "UD_DI_icontainer" }, d); e = $$("div", { "className": "UD_NUB_iconimg" }, a); $$("img", { "onerror": [U.M.ImgError, (["this", 1])], "onmousedown": U.M.apply(), "onselectstart": U.M.apply(), "ondragstart": U.M.apply(), "style": { "width": "48px", "height": "48px", "marginTop": "3px", "marginLeft": "5px" }, "src": US.afs + c.ApplicaitonImg, "alt": c.ApplicationID }, e); $$("div", { "className": "UD_NUB UD_NUB_appname", "innerHTML": c.ApplicationName }, a); }; U.D.loginicArray = function () { var c = $("#UD_MBoard")[0], b = $("span", c); U.D.T.displayDesktop(); for (var a = U.D.DestopStr.length; a < b.length; a++) { c.removeChild(b[a]); } if (US.userInfo.icon) { U.D.DestopStr = U.D.DestopStr.concat(US.userInfo.icon); } }; U.D.AddDeskTop = function (b, e, c, a, d, f) { U.A.Request("UseStudioManage.AddDesktop", ([b, e, c, a, d, f]), U.M.apply(), ([])); }; U.D.OAPP = function (a, f, e, b, g) { var c = US.userInfo.userid; if (!U.U.L.LARG()) { var h = U.D.UDMB; for (var d = 0; d < U.D.DestopStr.length; d++) { if (U.D.DestopStr[d].ApplicationID == f) { U.Alert("您已经添加过该应用了"); return; } } U.UI.Confirm("是否添加应用?", [U.D.AAPP, ([h, f, b, a, e, g])], ""); } }; U.D.AAPP = function (b, f, d, a, e, g) { var c = new U.D.T.Entity([f, "", d, a, e, g]); U.D.DestopStr.push(c); U.D.AddDeskTop(US.userInfo.userid, f, d, a, e, g); U.D.AddApp(c, U.D.UDMB); U.D.UDOS = $("span", b); U.D.IconRank(); }; U.D.deleteApp = function (b, c) { if (b.AppNewWin) { for (var a = 0; a < U.D.DestopStr.length; a++) { if (U.D.DestopStr[a].ApplicationID == b.ApplicationID) { U.D.DestopStr.splice(a, 1); } } c.parentNode.removeChild(c); U.A.Request("UseStudioManage.deleteApplication", ([US.userInfo.userid, b.ApplicationName]), U.M.apply(), ([])); U.D.UDOS = $("span", U.D.UDMB); U.D.R.DesktopLeftClick(); } else { U.D.R.DNIcon((["none", "none", "none", "none"])); } }; U.D.IconRank = function () { var b, d = U.D.UDOS, c = 50, a = 40; for (b = 0; b < d.length; b++) { $(d[b]).addAttrArray({ "style": { "top": c + "px", "left": a + "px" } }); c += 120; (c + 200 >= US.Height) && (c = 50, a += 95); } }; U.D.RGL = function (b, a) { if (event.button == 0 || event.button == 1) { U.D.iconmove(b, null, { "ST": U.D.TDXZ, "UP": U.D.TDUP }); } else { U.D.R.AppRightClick(a, b); } }; U.D.TDXZ = function (a) { $(a).addAttrArray({ "style": { "zIndex": US.ZV + 1, "backgroundPosition": "-97px -210px" } }); }; U.D.TDUP = function (k) { var g, m = k, d, e, h = U.D.UDOS, n = Math.max(k.offsetTop, this.Y), a = Math.max(k.offsetLeft, this.X), j = Math.min(k.offsetTop, this.Y), l = Math.min(k.offsetLeft, this.X), f = (a == l && k.offsetTop > this.Y), c = Math.round((this.SO.offsetLeft - 40) / 95), b = Math.round((this.SO.offsetTop - 30) / 120); $(this.SO).addAttrArray({ "style": { "left": 40 + 95 * c + "px", "top": 50 + 120 * b + "px", "zIndex": "", "backgroundPosition": "-13px -210px" } }); while ((d = U.D.ISF(m, [m.offsetLeft, m.offsetTop]))) { if (this.X == a && !f) { c = d.offsetLeft; b = d.offsetTop + 120; if (b > US.Height - 200) { c += 95; b = 50; } d.style.left = c + "px"; d.style.top = b + "px"; } else { c = d.offsetLeft; b = d.offsetTop - 120; if (b < 50) { c -= 95; b = (Math.round((US.Height - 30) / 120) * 120 - 190); } d.style.left = c + "px"; d.style.top = b + "px"; } m = d; } }; U.D.ISF = function (d, c) { var a, b = U.D.UDOS; for (a = 0; a < b.length; a++) { if (b[a] !== d && (b[a].offsetLeft == c[0] && b[a].offsetTop == c[1])) { return b[a]; } } return false; }; U.D.UDAD; U.D.UTNews = function (b) { var d = $("#UD_UT")[0]; var c = U.D.UDAD = U.D.UDAD ? U.D.UDAD : $("div", d), a = $("div", c["UD_UTS"]); a[5].innerText = U.D.SS(b[3]); c[10].innerText = b["province"] + b["city"]; U.D.UTLNews(); U.D.Time([$("div", c["UD_UTT"])]); d.style.display = "block"; }; U.D.UTLNews = function () { var a = U.D.UDAD ? U.D.UDAD : $("div", $("#UD_UT")[0]); $("img", a[0].parentNode)[0].src = U.M.GetImgU(US.userInfo.UserThumbnailImageHead); a[3].innerText = US.userInfo.UserNickName || "未登录"; if (US.userInfo.userid) { a[4].innerText = "退出"; } else { a[4].innerText = ""; } }; U.D.Time = function (a) { var c, b = U.MT.getTimeStr(new Date(), "Array"); for (c = 0; c < a.length; c++) { a[c][0].innerText = b[3] + ":" + b[4]; a[c][2].innerText = b[0] + "-" + b[1] + "-" + b[2]; } }; U.D.PSU = function (c) { var b = U.D.UDAD ? U.D.UDAD : $("div", $("#UD_UT")[0]), a = $("div", b["UD_UTS"]); b[7].innerText = U.D.SS(c[0]); a[2].innerText = U.D.SS(c[1]); }; U.D.SSKH = function () { a = [100, "block"]; if (U.D.UDAD["UD_UTX"].style.display == "block") { var a = [0, "none"]; } U.D.UDAD["UD_UTX"].style.display = a[1]; $(U.D.UDAD["UD_UTX"]).animate({ "height": a[0] + "px" }, 300, null); }; U.D.SS = function (a) { a = a + ""; var d = a.length, c = Math.ceil(d / 3), b = ""; for (var e = 0; e < c; e++) { b = (e == c - 1 ? "" : ",") + a.substring(d - 3 * (e + 1), d - 3 * e) + b; } return b; }; U.D.SZY = function (a, d) { var c = $("div", a); for (var b = 0; b < c.length; b++) { if (d == b) { c[b].className = "UD_UTSRZ"; } else { c[b].className = "UD_UTSRE"; } } U.LC.C(d == 0 ? "Z" : "E"); }; U.D.ZTSGL = { "WZ": ["DF", "DZ"], "S": ["Disk", "Blog", "Pb", "Word", "Excel", "GR"], "UP": { "RT": -320, "RL": 80, "UX": -23, "UY": -3, "WQ": "UD_ZYQT", "UIC": "UD_ZY_CDIF", "ID": "UDK_FUPB", "T": "云端在线,体验云服务", "C": "setp3:点击上传文件按钮,上传您的一个文件吧!" }, "DF": { "RT": 30, "RL": 150, "B": "下一步", "WQ": "UD_ZYQO", "UX": 80, "UY": 40, "UIC": "UD_ZY_CDIF", "ID": "UDK_LL_FDSC", "T": "云端在线,体验云服务", "C": "这里可以查看自己,好友,有群共享的资料" }, "DZ": { "RT": -320, "RL": 80, "UX": -23, "UY": -3, "WQ": "UD_ZYQT", "UIC": "UD_ZY_CDIF", "ID": "UDK_HP_UpFile", "T": "云端在线,体验云服务", "C": "setp3:点击上传文件按钮,存储你需要的资源吧!" }, "Disk": { "UIC": "UD_ZY_CDIZ", "ITF": "0", "T": "云端在线,体验云服务", "C": "网络U盘,存储需要的图片、音乐、文件、视频。和好友分享不需要随身携带,永不丢失" }, "Blog": { "UIC": "UD_ZY_CDIS", "ITF": "3", "T": "云端在线,体验云服务", "C": "发表文章,让读者以互动的方式留下意见,存储自己需要的技术和学习文章" }, "Pb": { "UIC": "UD_ZY_CDIS", "ITF": "4", "T": "云端在线,体验云服务", "C": "一个结合了各种新闻资讯的论坛,用户可以随意的发帖和公告,通过学习社区可了解最新的信息" }, "Word": { "UIC": "UD_ZY_CDIS", "ITF": "7", "FUN": "", "T": "云端在线,体验云服务", "C": " 新功能!编辑好的Word可以在线生成网站,发给自己的朋友查看。" }, "Excel": { "UIC": "UD_ZY_CDIS", "ITF": "8", "FUN": "", "T": "云端在线,体验云服务", "C": "工作表已经加入云端了哦。" }, "GR": { "UIC": "UD_ZY_CDIS", "T": "添加个人资料吧", "C": "换个头像,更新个人资料让更多云友认识你把!", "B": "确定", "CB": "U.U.UPD" } }; U.D.ZYBH = function (o, n) { var j, p, m, e, k, d, g, a, f = ["block", "none"], q = $("#UD_ZY"), c = $("div", q[0]), h = c["UD_ZY_CD"], l = c["UD_ZY_CS"]; p = $("div", h); c[5]["className"] = "UD_ZYI UD_ZY_CDI " + (o[5] || "UD_ZY_CDIQ"); for (j = 0; j < 3; j++) { if (j < 2) { if (typeof o[j + 1] == "string") { p[j].innerHTML = o[j + 1]; } else { p[j].innerText = ""; p[j].appendChild(o[j + 1]); } } else { if (o[j + 1]) { if (o[j + 1][0]) { $(p[j + 2]).addAttrArray({ "style": { "display": "block" }, "onmousedown": U.M.StopBubble, "onclick": o[j + 1][0], "innerHTML": o[j + 1][3] || "下一步" }); } else { p[j + 2].style.display = "none"; } $(p[j + 1]).addAttrArray({ "innerHTML": o[j + 1][1], "onmousedown": U.M.StopBubble, "onclick": o[j + 1][2] }); } else { p[j + 1].style.display = p[j + 2].style.display = "none"; } } } if (o[4]) { var m = (o[4]["X"] - o[4]["L"]), e = o[4]["Y"] - o[4]["T"]; if (e > 0) { e = Math.min(140, e -= 100); d = 210 + (e / 2); a = 210 + (e / 4); } else { if (Math.abs(e) > n.offsetHeight) { e += n.offsetHeight; } d = (e / 6 * 5); a = (e / 2); } if (m > 0) { m -= 150; k = 250 + (m / 2); g = 250 + (m / 4); } else { if (Math.abs(m) > n.offsetWidth) { m += n.offsetWidth; } k = (m / 6 * 5) + 25; g = (m / 4) + 30; } } if (k) { c.addAttrArray({ "style": { "left": k + "px", "top": d + "px", "display": "block" } }, 0); c.addAttrArray({ "style": { "left": g + "px", "top": a + "px", "display": "block" } }, 1); if (o[6] && n) { var b = (n) && (U.M.GetElementInfo(n)); c.addAttrArray({ "className": "UD_ZYI UD_ZYQ " + (o[6][2] || "UD_ZYQO"), "style": { "left": (b["TX"] - o[4]["L"] - 25 - (o[6][0] || 0)) + "px", "top": (b["TY"] - o[4]["T"] - 8 - (o[6][1] || 0)) + "px", "display": "block" } }, 2); } else { c[2].style.display = "none"; } } else { for (j = 0; j < 3; j++) { c[j].style.display = "none"; } U.D.PopupWindow(q[0]); return; } U.D.SetDTop((q.addAttrArray({ "style": { "left": o[4]["L"] + "px", "top": o[4]["T"] + "px", "display": "block" } }))[0]); }; U.D.ZYXB = function (c, h, f) { if (US.userInfo.userid != null) { var d = U.D.ZTSGL[f || "S"], b = d[c]; while (!U.D.ISZY(b) && c < d.length) { c += 1; b = U.D.ZTSGL[f || "S"][c]; } d = U.D.ZTSGL[b]; if (h || d) { var a = (d["ITF"] == null ? (d["ID"] == null ? null : $("div#" + d["ID"], US.Disk.diskfileTree[1][3])[0]) : U.D.UDOS[d["ITF"]]), g = $("#UD_ZY_CGB")[0], e = (a) && (U.M.GetElementInfo(a)); g.onclick = U.M.apply(g, [[U.D.ZYXB, ([d.length, h, f])]]); U.D.ZYBH([true, d["T"], d["C"], [f == "WZ" ? null : (c == U.D.ZTSGL["S"].length - 1 ? null : U.M.apply(g, [[U.D.ZYXB, ([c + 1, h, f])]])), d["B"] || "打开", ((a) && ([[U.D.ZYXB, ([c + 1, false, f])], [a.onclick]])) || ([[U.D.CloseWindow, ([$("#UD_ZY")[0]])], [d["CB"]]])], a ? ({ "X": e["TX"], "Y": e["TY"], "L": e["TX"] + (d["RL"] || 130), "T": e["TY"] + (d["RT"] || 0) }) : null, d["UIC"], [d["UX"], d["UY"], d["WQ"]]], a); } else { $("#UD_ZY")[0].style.display = "none"; } } else { $("#UD_ZY")[0].style.display = "none"; } }; U.D.ISZY = function (b) { var a = true; switch (b) { case "Word": a = (U.Dk.M.ufinfoarray("GetFBT", "uw").length < 1); break; case "Excel": a = (U.Dk.M.ufinfoarray("GetFBT", "ue").length < 1); break; case "GR": a = (U.U.CUD() < 70); break; case "DF": a = (US.Friend[1].length < 1 || US.Friend[2].length < 1); break; default: a = (US.Disk.diskfileTree[0].length < 7); break; } return a; }; Namespace.register("U.Dk.RE"); U.Dk.RE.CMB = function (b, c) { var a, d; if ("UW,UE,folder".indexOf(b) > -1) { a = $$("div", { "className": "UDL U_UI_dlnoSR" }); d = $$("div", {}, a); $$("input", { "type": "text", "style": { "cssText": "width: 220px; height: 18px; border:none; outline:none; background:none; margin-left:16px; " } }, d); U.Dk.RE.Prompt(b == "folder" ? "新建文件夹" : "新建" + b + "文件", 140, 350, a, "OKCancel", U.M.apply(a, [[U.Dk.RE.AF, ([b, a, c])]]), US.Disk.diskfileTree[1][3]).Create(); return true; } else { U.Alert("拒绝访问"); return false; } }; U.Dk.RE.AF = function (e, g, k) { var f = US.userInfo.userid; if (f != null && f == US.Disk.diskfileTree[1][0].UserId) { var b = $("input", g)[0]; if (U.Dk.RE.MBC(US.Disk.diskfileTree[1][1], b.value, e, "Create") && U.Dk.M.ufinfoarray("PDQX", US.Disk.diskfileTree[1][1])) { var j = 1, g = U.MT.GetDT(new Date()), m = b.value.RemoveHTMLSign(), c = m.length > 10 ? m.substring(0, 10) + "..." : m, a = 9999, d = US.Disk.diskfileTree[1][1], h = U.Dk.M.ufinfoarray("RecurD", d), i = U.Dk.M.ufinfoarray("onefind", d), l = new U.Dk.M.Entity(([U.MS.produceGuid(), 0, d, c, m, e, U.MS.produceGuid() + "." + e, new Date(), U.Dk.HP.FFT(e)[1], a, null, null, j, "", null])); if (e == "folderencrypt" || e == "folder") { j = 0; a = i.UserDirectoryDeep + 1; } U.Adisk.Request("UseStudioDisk.addDirectoryOrFile", ([US.userInfo.userid, l["UserDirectoryParentID"], l["UserDirectoryID"], l["UserFilesServerName"], m.toHtml(), e, a, h[h.length - 1].GroupID || ""]), U.Dk.RE.AsynAF, (["", l, k])); } else { U.Alert("无访问的权限!"); } } }; U.Dk.RE.AsynAF = function (b) { var a = b.context; b = b.value; if (b != null) { U.Dk.M.ufinfoarray("add", a[1]); if (a[1].UserDirectoryExtendType == "folder") { U.Dk.RE.ALFO(a[1]); } U.Dk.RE.ARFO(a[1]); if (a[2]) { a[2](a, b); } U.Alert("文件添加成功~"); } else { U.Alert("系统繁忙,添加失败"); } }; U.Dk.RE.ARFO = function (b) { if (US.Disk.diskfileTree[1][1] == b.UserDirectoryParentID) { var a = $("div#UDK_LR_directoryListArea", US.Disk.diskfileTree[1][3])[0]; if ($("div", a)[1].className == "UDK_L_DiskGE UDK_RT_NFF") { a.innerText = ""; } if (US.Disk.diskfileTree[1][4] == "Normal") { U.Dk.VW.PD([b], a); } else { if (US.Disk.diskfileTree[1][4] == "Details") { U.Dk.VW.PTD([b], a); } } } }; U.Dk.RE.AUPV = function (c) { var f = $$("div", {}), a, e = ["视频名称:", "分享地址:"]; for (var d = 0; d < e.length; d++) { a = $$("div", { "style": { "cssText": "float:left; margin:20px 0 0 20px;line-height:20px;clear:both;" }, "innerHTML": e[d] }, f); $$("input", { "type": "text", "style": { "cssText": "width:220px;height:18px;" } }, a); } var b = U.Dk.RE.Prompt("分享视频", 180, 350, f, "OKCancel", U.M.apply(f, [[U.Dk.RE.UPV, ([c])]]), US.Disk.diskfileTree[1][3]); b.Create(); }; U.Dk.RE.UPV = function (a) { var e = $("input", this), c = "video"; if (U.Dk.RE.MBC(a, e[0].value, c, "Create") && U.MS.Website(e[1].value.Trim())) { var b = e[0].value.length > 15 ? e[0].value.substring(0, 10) + "..." : e[0].value; var d = new U.Dk.M.Entity(([U.MS.produceGuid(), 0, a, e[0].value, b, c, e[1].value, new Date(), U.Dk.HP.FFT(c)[1], 9999, null, null, 1])); U.Adisk.Request("UseStudioDisk.addDirectoryOrFile", ([US.userInfo.userid, a, d["UserDirectoryID"], d["UserFilesServerName"], e[0].value, c, 9999, ""]), U.Dk.RE.AsynAF, (["", d])); } }; U.Dk.RE.ALFO = function (a, d) { if (a["UserDirectoryExtendType"] == "folder") { var c = $("a", US.Disk.diskfileTree[1][3])["d" + a.UserDirectoryParentID]; if (c != null) { var b = U.M.GTCN(c.parentNode.parentNode.childNodes)[1]; if (b && U.M.GTCN(b.childNodes).length > 0) { if (d) { b.removeChild($("a", b)["d" + a.UserDirectoryID].parentNode.parentNode); } else { U.Dk.VW.CLV([a], b); } } else { U.Dk.LL.SM(c.parentNode, US.Disk.diskfileTree[1][0].UserId, a.UserDirectoryParentID); } } } }; U.Dk.RE.DMB = function (f, e) { var d, c, a, b = U.Dk.M.ufinfoarray("PDQX", US.Disk.diskfileTree[1][1]); if (b) { if (f.length) { for (d = 0; d < f.length; d++) { if (f[d]["filetype"] == 0) { f.splice(d, 1); d--; } } if (f.length > 0) { a = $$("div", { "style": { "cssText": "float:left;text-align:center;width:100%;padding:5% 0 5% 0;" } }); $$("span", { "style": { "cssText": "font-weight:bold;" }, "innerHTML": "你确定要删除这" + f.length + "项吗?" }, a); } } else { c = 220; a = U.Dk.RE.ABYS(null, f); } U.Dk.RE.Prompt("删除文件", c, 350, a, "OKCancel", U.M.apply(this, ([[U.Dk.RE.DF, ([f])], e])), US.Disk.diskfileTree[1][3]).Create(); } }; U.Dk.RE.DF = function (b) { if (US.userInfo.userid != null && US.userInfo.userid == US.Disk.diskfileTree[1][0].UserId) { b = b.length != null ? b : [b]; var c = ""; if (b[0].filetype == 0) { if (U.Dk.M.ufinfoarray("find", ([b[0].UserDirectoryID])).length > 0) { U.Alert("文件夹下还有文件,请用户删除文件夹再删除文件"); return; } } var d = U.Dk.M.ufinfoarray("RecurD", b[0].UserDirectoryParentID); for (var a = 0; a < b.length; a++) { c += b[a].UserDirectoryID + (a == b.length - 1 ? "" : ","); } U.Adisk.Request("UseStudioDisk.deleteDirectoryOrFile", ([US.userInfo.userid, c, b[0].filetype, d[d.length - 1].GroupID || ""]), U.Dk.RE.AsynDF, (["", b])); } else { U.Alert("无访问的权限!"); } }; U.Dk.RE.AsynDF = function (d) { var c = d.context; d = d.value; if (d) { var a = c[1].UserDirectoryID, e = 0; if (c[1].length) { for (var b = 0; b < c[1].length; b++) { U.Dk.M.deletefindfile(c[1][b].UserDirectoryID); e += c[1][b].UserDirectorySize; } a = c[1][0].UserDirectoryParentID; } else { U.Dk.M.deletefindfile(c[1].UserDirectoryID); } US.Disk.diskfileTree[1][0].FileSize = Math.ceil((U.Dk.HP.GetSfileS(US.Disk.diskfileTree[1][0].FileSize + "M") - e) / 1024 / 1024); if (US.Disk.diskfileTree[1][1] == a) { U.Dk.VW.DT(a); U.Dk.RE.ALFO(c[1][0], "D"); } U.Dk.onloadLeft(); } else { U.Alert("该文件夹还包含文件,删除文件后才能删除该文件夹!"); } }; U.Dk.RE.MRNT = function (e, b) { var a, g, f, c = U.Dk.M.ufinfoarray("onefind", b), d = U.Dk.M.ufinfoarray("PDQX", c.UserDirectoryID); if (d) { a = $$("div", { "className": "UDL U_UI_dlnoSR" }); g = $$("div", {}, a); f = $$("input", { "type": "text", "style": { "cssText": "width: 220px;height: 18px; border:none; outline:none;background:none; margin-left:16px; " }, "value": c.UserallDirectoryName.split("." + c.UserDirectoryExtendType)[0], "onkeypress": [[U.M.returnkeylogin, ([null, [[U.Dk.RE.MRN, ([c, a])]]])]] }, g); U.Dk.RE.Prompt("修改文件", 140, 350, a, "OKCancel", U.M.apply(a, ([[U.Dk.RE.MRN, ([c, a])]])), US.Disk.diskfileTree[1][3]).Create(); } f.select(); }; U.Dk.RE.MRN = function (a, b) { U.Dk.RE.MFN(a, $("input", b)[0].value); }; U.Dk.RE.MFN = function (a, d) { var c = a.UserDirectoryExtendType, b = a.UserDirectoryID; d = d.RemoveHTMLSign(); (c == "folderencrypt") && (c = "folder"); if (U.Dk.RE.MBC(US.Disk.diskfileTree[1][1], d, c, "Change")) { if (d == a.UserallDirectoryName) { U.Alert("修改文件名成功"); } else { U.Adisk.Request("UseStudioDisk.modifyDirectoryOrFile", ([US.userInfo.userid, b, d, c]), U.Dk.RE.AsynMRN, (["", a, d])); } } }; U.Dk.RE.AsynMRN = function (h) { var d = h.context, a = d[1], f = d[2], c, g, b, e = US.Disk.diskfileTree[1][3]; h = h.value; if (h) { a.UserallDirectoryName = f; a.UserDirectoryName = f.length > 15 ? f.substr(0, 10) + "..." : f; c = a.UserDirectoryExtendType; (c == "folderencrypt") && (c = "folder"); g = $("span#resDataList_name_" + a.UserDirectoryID, e)[0]; (g) && (g.innerHTML = a.UserDirectoryName, g.parentNode.parentNode.title = f); if (c == "folder") { b = $("a#d" + a.UserDirectoryID, e)[0]; (b) && ($("span", b)[0].innerHTML = a.UserDirectoryName); } U.Alert("修改文件名成功"); } else { U.Alert("系统繁忙,请重新修改"); } }; U.Dk.RE.AB = function (c, b) { var a = U.Dk.RE.ABYS(b); U.Dk.RE.Prompt(c.innerText, 220, 350, a, null, null, US.Disk.diskfileTree[1][3]).Create(); }; U.Dk.RE.ABYS = function (c, b) { var h = b || U.Dk.M.ufinfoarray("onefind", c), d = U.Dk.HP.IsDF(h.UserDirectoryExtendType)[0], g = (h.UserDirectoryExtendType == "folder" || h.UserDirectoryExtendType == "folderencrypt") ? "文件夹" : "文件"; var i = $$("div", { "style": { "cssText": "float:left;padding-top:5px;" } }); $$("span", { "style": { "cssText": "font-weight:bold;padding-left:10px;" }, "innerHTML": "该" + g + "属性:" }, i); var a = $$("div", { "style": { "cssText": "float:left;padding:5px;width:inherit;" } }, i); var e = $$("div", { "style": { "cssText": "width:65px;height:65px;float:left;margin:10px 0 0 15px;" } }, a); if (d == "P") { $$("img", { "className": "UDK_RT_UDD_DV", "src": h.UserDirectoryUrl, "onerror": [[U.M.ImgError, ([1])]] }, e); } else { $$("i", { "className": "UDK_L_DiskGE", "style": { "cssText": "float:left;width:65px;height:61px;display:inline-block;" + h.UserDirectoryUrl } }, e); } var f = $$("div", { "style": { "cssText": "float:left;width:250px;" } }, a); $$("span", { "style": { "cssText": "margin:4px 0 5px 25px; float:left;width: 220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" }, "innerHTML": "名称:" + h.UserallDirectoryName + "
" }, f); if (h.filetype == 1) { $$("span", { "style": { "cssText": "margin:0 0 5px 25px; float:left;width: 220px;white-space:pre-wrap;height:33px;text-overflow:ellipsis;" }, "spellcheck": "false", "contenteditable": "true", "innerHTML": "链接地址:disk.1473.cn/#!/" + h["UserDirectoryID"] + "
" }, f); } $$("span", { "style": { "cssText": "margin:0 0 5px 25px; float:left;width: 220px;" }, "innerHTML": "类型:" + g + "
" }, f); $$("span", { "style": { "cssText": "margin:0 0 5px 25px; float:left;width: 220px;" }, "innerHTML": "创建日期:" + U.MT.GetDT(h.UserDirectoryAddTime) + "
" }, f); $$("span", { "style": { "cssText": "margin:0 0 5px 25px; float:left;width: 220px;" }, "innerHTML": "文件大小:" + U.Dk.HP.FileSize(h.UserDirectorySize) + "
" }, f); return i; }; U.Dk.RE.SHEW = function (b, a) { var h, c, f, d = 280, i = 180, g = "OKCancel", e = false; if (b == "加密") { h = $$("div", { "style": { "cssText": "margin:auto; padding-top:15px; width:230px; height:100px;" } }); c = $$("div", { "style": { "cssText": "width:100%;height:25px;" } }, h); $$("span", { "style": { "cssText": "display:block; width:70px; height:25px; line-height:25px;float:left;" }, "innerHTML": "输入密码:" }, c); $$("input", { "type": "password", "style": { "width": "140px", "height": "20px" } }, c); f = $$("div", { "style": { "cssText": "margin-top:15px;clear:both;width:100%;height:25px;" } }, h); $$("span", { "style": { "cssText": "display:block; width:70px; height:25px; line-height:25px;float:left;" }, "innerHTML": "确认密码:" }, f); $$("input", { "type": "password", "style": { "width": "140px", "height": "20px" } }, f); e = true; } else { h = $$("div", { "style": { "cssText": "margin:auto; padding-top:10px; width:230px; height:30px;" } }); $$("span", { "style": { "cssText": "display:block; width:70px; height:25px; line-height:25px; float:left;" }, "innerHTML": "输入密码:" }, h); $$("input", { "type": "password", "style": { "width": "140px", "height": "20px" } }, h); i = 125; } U.Dk.RE.Prompt("暂时" + b, i, d, h, g, U.M.apply(h, [[U.Dk.RE.ETUE, ([e, a])]]), US.Disk.diskfileTree[1][3]).Create(); }; U.Dk.RE.ETUE = function (b, a) { var c = $("input", this); if (b) { if (c[0].value == c[1].value && c[0].value.IsGEdit()) { U.Adisk.Request("UseStudioDisk.encryptwindowButtonClick", ([US.userInfo.userid, a, c[0].value]), U.Dk.RE.AsynETUE, (["", "encrypt", a, c])); U.Alert("和服务器同步中..."); } else { U.Alert("无法和服务器同步,请输入密码"); } } else { if (c[0].value.IsGEdit()) { U.Adisk.Request("UseStudioDisk.DeciphermentFile", ([US.userInfo.userid, a, c[0].value]), U.Dk.RE.AsynETUE, (["", "unencrypted", a, null])); } else { U.Alert("密码错误"); } } }; U.Dk.RE.SZQX = function () { var d = US.Disk.diskfileTree[1][1], c = U.Dk.M.ufinfoarray("RecurD", d), b = false, a = (c.length > 1 && c[0].UserDirectoryEncrypt != "true" && c[c.length - 1].GroupID != null && c[0].GroupID == null); if (a) { b = ["是否设置文件夹权限", "encrypt", "true"]; } else { if (c[0].UserDirectoryEncrypt == "true" && c[0].GroupID == null) { b = ["是否解除文件夹权限", "unencrypted", null]; } else { if (US.Disk.diskfileTree[0].UserId == US.userInfo.userid) { U.Alert("本地文件无权限可设!"); } else { U.Alert("无法设置他人权限"); } } } if (b) { U.UI.Confirm(b[0], [U.Dk.RE.SQX, ([d, b[1], b[2]])], null); } }; U.Dk.RE.SQX = function (a, c, b) { U.Adisk.Request("UseStudioDisk.SetUserQX", ([US.userInfo.userid, a, (b == null ? "" : b)]), U.Dk.RE.AsynETUE, (["", c, a, b])); U.Alert("和服务器同步中..."); }; U.Dk.RE.AsynETUE = function (b) { var a = b.context; b = b.value; if (b !== false) { U.Dk.RE.CUP(a[1], b, a[2], (b || a[3])); U.Alert("文件夹设置成功"); } else { U.Alert("密码错误"); } }; U.Dk.RE.CUP = function (h, g, f, d) { var b = U.Dk.M.ufinfoarray("onefind", f), e = $("div#disk" + f, US.Disk.diskfileTree[1][3])[0], c = $("a#d" + f, US.Disk.diskfileTree[1][3])[0], a = h == "encrypt" ? [d, "background-position:-660px -40px;", b.UserDirectoryName + "(已加密)", US.Disk.diskfileTree[1][4] == "Details" ? "-241px -96px" : "-660px -40px", "UDK_L_DiskGE UDK_L_USTreeFolderEncryptIcon"] : [null, "background-position:-6px -41px;", b.UserDirectoryName, (US.Disk.diskfileTree[1][4] == "Details" ? "-217px -173px" : "-6px -41px"), "UDK_L_DiskGE UDK_L_USTreeFolderIcon"]; b.UserDirectoryEncrypt = a[0]; b.UserDirectoryUrl = a[1]; (e) && ($("div", e)[1].style.backgroundPosition = a[3]); (c) && ($("span", c)[0].innerHTML = a[2], $("i", c)[0].className = a[4]); }; U.Dk.RE.TF; U.Dk.RE.UFCopy = function (c, a) { if (c.length == null) { c = [c]; } for (var b = 0; b < c.length; b++) { if (c[b]["filetype"] == 0) { c.splice(b, 1); b--; } } U.Dk.RE.CE = c; U.Dk.RE.TF = a; }; U.Dk.RE.UFStick = function () { var g = U.Dk.RE.CE; if (US.userInfo.userid == US.Disk.diskfileTree[1][2] && g.length > 0) { var c, d = 0, h = true, f = ""; var b = U.Dk.M.ufinfoarray("RecurD", US.Disk.diskfileTree[1][1]); var a = U.Dk.UP.UPF(b[b.length - 1].UserDirectoryID); for (c = 0; c < g.length; c++) { f += g[c].UserDirectoryID + ","; d += g[c].UserDirectorySize; if (!U.UP.UploadFileType(g[c].UserallDirectoryName, (b[b.length - 1].UserDirectoryID == US.DG ? null : a[0])) && b[0].GroupID == null) { h = false; break; } } if (h || b[0].GroupID) { if (U.Dk.RE.TF == "Cut") { var e = U.Dk.M.ufinfoarray("onefind", U.Dk.RE.CE[0].UserDirectoryParentID); U.Adisk.Request("UseStudioDisk.CutFile", ([US.userInfo.userid, US.Disk.diskfileTree[1][1], f, b[0].GroupID || "", e.GroupID || ""]), U.Dk.RE.AysnUFCut, (["", US.Disk.diskfileTree[1][1], g])); } else { if (U.Dk.HP.GetSfileS(US.Disk.diskfileTree[1][0].FileSize + "M") + d <= U.Dk.HP.GetSfileS(US.userInfo.UserDiskSpace + "M")) { U.A.Request("UseStudioDisk.CopyFile", ([US.userInfo.userid, US.Disk.diskfileTree[1][1], f, b[0].GroupID || ""]), U.Dk.RE.AsynUFStick, (["", US.Disk.diskfileTree[1][1], g, d])); } else { U.Alert("网盘空间不足"); } } } else { U.Alert(a[1] + "不允许粘贴" + g[c].UserDirectoryExtendType + "格式"); } } else { U.M.StopBubble(); } }; U.Dk.RE.AsynUFStick = function (f) { var e, c, a; var d = f.context; f = f.value; var b = U.Dk.M.ufinfoarray("onefind", d[1]).UserDirectoryDeep + 1; for (e = 0; e < f.length; e++) { for (c = 0; c < d[2].length; c++) { if (d[2][c].UserDirectoryID == f[e].PID) { a = new U.Dk.M.Entity(([f[e].UserFilesID, d[2][c].UserDirectorySize, d[1], d[2][c].UserDirectoryName, d[2][c].UserallDirectoryName, d[2][c].UserDirectoryExtendType, d[2][c].UserFilesServerName, U.MT.GetDT(new Date()), d[2][c].UserDirectoryUrl, b, null, null, 1])); U.Dk.M.ufinfoarray("add", a); U.Dk.RE.ARFO(a); break; } } } US.Disk.diskfileTree[1][0].FileSize += Math.ceil(d[3] / 1024 / 1024); U.Dk.onloadLeft(); U.Alert("粘贴完成"); }; U.Dk.RE.AysnUFCut = function (e) { var d = e.context; e = e.value; var b = d[2][0].UserDirectoryParentID; var a = U.Dk.M.ufinfoarray("onefind", d[1]); for (var c = 0; c < d[2].length; c++) { d[2][c].UserDirectoryParentID = d[1]; } if (US.Disk.diskfileTree[1][1] == b || US.Disk.diskfileTree[1][1] == d[1]) { U.Dk.VW.DT(US.Disk.diskfileTree[1][1]); } }; U.Dk.RE.CN = function () { U.Dk.onloadAjax(US.Disk.diskfileTree[1][1], US.Disk.diskfileTree[1][2]); U.Dk.LE.DBC(US.Disk.diskfileTree[1][1], US.Disk.diskfileTree[1][0].UserId); U.Dk.LL.UDKURL(US.Disk.diskfileTree[1][1]); }; U.Dk.RE.ODL = function (d, c, b) { var a = d.substring(d.lastIndexOf(".") + 1, d.length); if (!U.U.L.LARG()) { if (a == null && d.indexOf("http") > 0) { window.open(d); } else { if (a == "ue" || a == "uw") { if (browser.msie) { top.U.Adisk.Request("UseStudioDisk.GetOffice", ([b]), U.Dk.RE.AsynXZ, (["", c])); U.Alert("正在加载下载页"); } else { U.UP.uploading([$$("input", { "type": "text", "value": d, "name": "filename" }), $$("input", { "type": "text", "value": c + ".htm", "name": "filepath" }), $$("input", { "type": "text", "value": US.userInfo.userid, "name": "UserId" })], null, null, "http://disk.1473.cn/UseStudiodisk.ashx?functionname=UseStudioDisk.UploadFile", false); } } else { window.open("/userpages/UD_XZ.aspx?fileservername=" + d + "&filename=" + c + "&UserId=" + US.userInfo.userid + "&usrd=" + Math.random()); } } } }; U.Dk.RE.AsynXZ = function (d) { var a, c, b = d.context[1]; d = d.value; if (d != false) { a = window.open("javascript:void((function(){document.open();document.domain='1473.cn';document.close()})())"); try { c = a.document.open(); c.write('