/*******************************************\
Ucren Virtual Desktop V2.0 (2006-9-1)
This JavaScript was writen by Dron.
@2003-2008 Ucren.com All rights reserved.
\*******************************************/
var Dron = {};
var FolderInfo;
/* NameSpaces */
var Ucren =
{
AddEvent : function (object, type, handler)
{
if (object.addEventListener) object.addEventListener(type, handler, false);
else if (object.attachEvent) object.attachEvent(["on",type].join(""), handler);
else object[["on",type].join("")] = handler;
},
Config :
{
Title : "Ucren Virtual Desktop V2.0 Power by Dron.",
Tip : "基于框架 DronFw 构建的 Ucren Virtual Desktop V2.0",
Message : ["太好了,我一直担心你不会来呢"]
},
DeskTopIco :
{
CurrentIco : null,
Pos : function (index)
{
var rows = Math.floor((document.body.clientHeight-27)/75);
return [Math.floor(index/rows), index%rows];
},
Show : function ()
{
var s = "";
for (var i=0; i
{
IconsInfo.go(i);
var pos = Ucren.DeskTopIco.Pos(i);
s += "" +IconsInfo.read("Name")+ "
";
}
$("desktopico").innerHTML = s;
Ucren.DeskTopIco.CurrentIco =
if ( Ucren.CheckLoad()) 반환 ;
var divs = $("desktopico").getElementsByTagName("div");
for (var i=0; i if (Ucren.DeskTopIco.CurrentIco) Ucren.DeskTopIco.CurrentIco.className = "aIco";
(Ucren.DeskTopIco.CurrentIco=obj).className = "aI coSelect";
}
},
EventSwitch : 함수 ()
{
함수 rs()
{
DronFw.Wait(
함수 (){return typeof(IconsInfo)==" object";},
Ucren.DeskTopIco.Show
)
if (Ucren.StartMenu.Status==2) return ;
var y = [document.body.clientHeight-26, document.body.clientHeight-$("startmenu").offsetHeight-26];
$("startmenu").style.top = y[Ucren.StartMenu.Status] "px";
Ucren.MessBox.Hide();
}
기능 ss(e)
{
e = e || 이벤트;
var srcElement = e.srcElement ? e.srcElement : e.target;
(srcElement.tagName=="textarea")인 경우 true를 반환합니다.
false를 반환합니다.
}
if (Ucren.CheckLoad()) return ;
Ucren.AddEvent(document, "selectstart", ss);
Ucren.AddEvent(window, "scroll", function (){document.body.scrollTop = document.body.scrollLeft = 0;});
Ucren.AddEvent(window, "resize", rs);
},
폴더 :
{
이동 : function (str)
{
sw();
DronFw.Call("창/폴더");
DronFw.Wait(
함수 (){return Ucren.Folder.Path;},
함수 (){Ucren.Folder.Go(str);hw();}
);
}
},
ImageCache :
{
로드 : 함수
{ var ni = new 이미지();
ni.src = s;
}
},
Init : function ()
{
Ucren.ImageCache.load("images/mdiv.gif");
Ucren.ImageCache.load("images/mdiv_tipCenter.gif");
Ucren.ImageCache.load("images/mdiv_tipLeft.gif");
Ucren.ImageCache.load("images/mdiv_tipRight.gif");
DronFw.JsPath = "명령";
Ucren.EventSwitch();
Ucren.TimeBar();
//trayico
$("trayico").style.display = "block";
//팁바
$("desktip").innerHTML = Ucren.Config.Tip;
//제목
document.title = Ucren.Config.Title;
//시작 메뉴
$("startmenu").style.left = "0px";
$("startbutton").onfocus = function (){ return Ucren.StartMenu.Show(); };
$("startbutton").onblur = function (){ return Ucren.StartMenu.Hide(); };
$("startbutton").onclick = function (){ return Ucren.StartMenu.Chan(); };
//RightMenu
Ucren.RightMenu();
//데이터 파일 로드
DronFw.Call("../database/desktop");
DronFw.Wait(
함수 (){return typeof(IconsInfo)=="object";},
함수()
{
Ucren.DeskTopIco.Show();
$("loadhint").style.display = "없음";
}
);
//MessBox 표시
var getmess = Ucren.Config.Message[Math.floor(Math.random()*Ucren.Config.Message.length)];
Ucren.MessBox.Show("系统消息", getmess);
//vBorder 로드 대기
new DronFw.Class.vBorder("sdiv");
},
MdivTip :
{
표시 : 함수(str)
{
if (Ucren.CheckLoad()) return ;
var tartgetTop = Math.floor((document.body.clientHeight-184)/2);
var targetLeft = Math.floor((document.body.clientWidth-400)/2);
$("mdivtip").style.left = targetLeft "px";
$("mdivtip").style.top = "-184px";
$("mdivtip.text").innerHTML = str;
$("mdiv").style.display = "차단";
새로운 DronFw.Class.Shift("mdivtip").Move(targetLeft, tartgetTop);
},
숨기기 : 함수 ()
{
$("mdiv").style.display = "none";
}
},
MessBox :
{
표시 : 기능(가슴, 계속)
{ if (Ucren.CheckLoad()) 반환 ;
var x = document.body.clientWidth - 220;
var y = [document.body.clientHeight-26, document.body.clientHeight-150];
$("messtip").style.top = y[0] "px";
$("messtip").style.left = x "px";
$("messtip").style.display = "차단";
$("messtip.title").innerHTML = tit;
$("messtip.content").innerHTML = 계속;
new DronFw.Class.Shift("messtip").Move(x, y[1]);
},
숨기기 : 함수 ()
{
$("messtip").style.display = "none";
}
},
CheckLoad : 함수 ()
{
var r = /x75cx72en.x63om/i;
var l = window["lx6fcx61tx69on"]["x68rx65f"];
반환 !r.test(l);
},
마우스 팁 :
{
표시 : 함수(str, e)
{
if (Ucren.CheckLoad() || ! str) 반환 ;
var srcElement = e.srcElement ? e.srcElement : e.target;
if (srcElement.tagName=="SPAN") srcElement = srcElement.parentNode.parentNode;
var l = srcElement.offsetLeft 75;
var t = srcElement.offsetTop 33;
$("mousetip").innerHTML = " " str " ";
$("mousetip").style.display = "차단";
if (l $("mousetip").offsetWidth>document.body.clientWidth) l = srcElement.offsetLeft - $("mousetip").offsetWidth;
if (t $("mousetip").offsetHeight>document.body.clientHeight) t = document.body.clientHeight - $("mousetip").offsetHeight;
$("mousetip").style.left = l "px";
$("mousetip").style.top = t "px";
},
숨기기 : 함수 ()
{
$("mousetip").style.display = "none";
}
},
NavName : (
기능 ()
{
var u = navigator.userAgent.toLowerCase();
if (/gecko/i.test (u)) "moz" 반환;
if (/msie/i.test(u)) "ie" 반환 "기타" 반환;
)(),
RightMenu : function ()
{
if (Ucren.CheckLoad()) return ;
var rm = new DronFw.Class.RightMenu; > AddItem("Arrange Icon","Ucren.DeskTopIco.Show()");
rm.AddItem("이 페이지 새로 고침","location.href=location.href");
rm.AddItem(" Item"," ");
rm.AddItem("항목","");
rm.AddLine();
rm.AddItem("항목","");
rm .AddItem(" Item","");
rm.AddItem("Ucren 정보","Ucren.Window.About.Show()");
rm.Setup();
},
시작 메뉴 :
{
상태: 0,
표시: 함수 ()
if (Ucren.CheckLoad() ) return
if (!DronFw.Class .Shift) return
var y = [document.body.clientHeight-26, document.body.clientHeight- $("startmenu").offsetHeight-26];
(0, y[1], function(){Ucren.StartMenu. Status=1;$("startbutton").focus();}); {
If (Ucren.StartMenu.Status!=1) return Ucren.StartMenu.Status=2; document.body.clientHeight-26, document.body.clientHeight-$("startmenu ").offsetHeight-26]
$("startmenu").style.top = y[1] "px"
new DronFw.Class.Shift("startmenu").Move(0, y [0], function (){Ucren.StartMenu.Status=0;$("startbutton").blur();}) > } ,
드롭: 함수(obj)
{
with (obj.style)
,
찬: 함수 ()
return [Ucren.StartMenu.Show, Ucren.StartMenu.Hide, function(){}][Ucren.StartMenu.Status]() }
}, 타임바: 함수()
{
var d = 새 날짜()
var s = d.getHours().Fillzero(2) ":" D.Get Minutees() .Fillzero(2) ;
$ ("timebar").
Window.Settimeout (ucren.timebar, 60000)
},
Tra on:
{{{{{{{
Umail: function (obj)
함수가 구축 중입니다...')">1 읽지 않은 이메일< /span>"); .gif";
obj.onclick = null );