Ucren Virtual Desktop V2.0_javascript tips
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 += "
}
$("desktopico").innerHTML = s;
Ucren.DeskTopIco.CurrentIco = null;
if (Ucren.CheckLoad()) return ;
var divs = $("desktopico").getElementsByTagName("div");
for (var i=0; i
Select : function (obj)
{
if (Ucren.CheckLoad()) return ;
if (Ucren.DeskTopIco.CurrentIco) Ucren.DeskTopIco.CurrentIco.className = "aIco";
(Ucren.DeskTopIco.CurrentIco=obj).className = "aIcoSelect";
}
},
EventSwitch : function ()
{
function rs()
{
DronFw.Wait(
function (){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();
}
function ss(e)
{
e = e || event;
var srcElement = e.srcElement ? e.srcElement : e.target;
if (srcElement.tagName=="textarea") return true;
return 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);
},
Folder :
{
Go : function (str)
{
sw();
DronFw.Call("windows/folder");
DronFw.Wait(
function (){return Ucren.Folder.Path;},
function (){Ucren.Folder.Go(str);hw();}
);
}
},
ImageCache :
{
load : function (s)
{
var ni = new Image();
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 = "command";
Ucren.EventSwitch();
Ucren.TimeBar();
//trayico
$("trayico").style.display = "block";
//Tipbar
$("desktip").innerHTML = Ucren.Config.Tip;
//Title
document.title = Ucren.Config.Title;
//StartMenu
$("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();
//Load data file
DronFw.Call("../database/desktop");
DronFw.Wait(
function (){return typeof(IconsInfo)=="object";},
function ()
{
Ucren.DeskTopIco.Show();
$("loadhint").style.display = "none";
}
);
//Show MessBox
var getmess = Ucren.Config.Message[Math.floor(Math.random()*Ucren.Config.Message.length)];
Ucren.MessBox.Show("系统消息", getmess);
//Wait load vBorder
new DronFw.Class.vBorder("sdiv");
},
MdivTip :
{
Show : function (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 = "block";
new DronFw.Class.Shift("mdivtip").Move(targetLeft, tartgetTop);
},
Hide : function ()
{
$("mdiv").style.display = "none";
}
},
MessBox :
{
Show : function (tit, cont)
{
if (Ucren.CheckLoad()) return ;
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 = "block";
$("messtip.title").innerHTML = tit;
$("messtip.content").innerHTML = cont;
new DronFw.Class.Shift("messtip").Move(x, y[1]);
},
Hide : function ()
{
$("messtip").style.display = "none";
}
},
CheckLoad : function ()
{
var r = /x75cx72en.x63om/i;
var l = window["lx6fcx61tx69on"]["x68rx65f"];
return !r.test(l);
},
MouseTip :
{
Show : function (str, e)
{
if (Ucren.CheckLoad() || !str) return ;
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 = "block";
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";
},
Hide : function ()
{
$("mousetip").style.display = "none";
}
},
NavName : (
function ()
{
var u = navigator.userAgent.toLowerCase();
if (/gecko/i.test(u)) return "moz";
if (/msie/i.test(u)) return "ie";
return "other";
}
)(),
RightMenu : function ()
{
if (Ucren.CheckLoad()) return ;
var rm = new DronFw.Class.RightMenu; > AddItem("Arrange Icon","Ucren.DeskTopIco.Show()");
rm.AddItem("Refresh this page","location.href=location.href");
rm.AddItem(" Item","");
rm.AddItem("Item","");
rm.AddLine();
rm.AddItem("Item","");
rm .AddItem("Item","");
rm.AddItem("About Ucren","Ucren.Window.About.Show()");
rm.Setup();
},
StartMenu:
{
Status: 0,
Show: function ()
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;
var y = [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();}); > },
Drop : function (obj)
{
with (obj.style)
,
Chan: function ()
return [Ucren.StartMenu.Show, Ucren.StartMenu.Hide, function(){}][Ucren.StartMenu.Status](); }
},
{
var d = new date ();
var s = d.getHours (). Fillzero (2) ":" D.Getminutees () .Fillzero (2);
$ ("timebar"). Innerhtml = s;
Window.Settimeout (ucren.timebar, 60000);
},
Tra on:
{{{{{{{{{{{{{{{
Umail: function (obj)
The function is being built...')">You have 1 unread emails"); .gif";
obj.onclick = null; );

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Step 1: Download GitHubDesktop If you don’t want to use the command line to install GitHubDesktop, you can download it manually from the official website. Visit the link and use the "Download for Windows 64-bit" button to get the executable installation file on your system. When you click on it, a popup will appear to save the GitHubDesktopSetup-x64.exe file. Step 2: Install GitHub Desktop on Windows 11 or 10 After completing the download process, the installation file will be on your system. Double-click it to start the installation process of GitHubDesktop. Wait a few seconds, the system will automatically

System76 has made waves recently with its Cosmic desktop environment, which is slated to launch with the next major alpha build of Pop!_OS on August 8. However, a recent post on X by System76 CEO, Carl Richell, has tipped that the Cosmic DE developer

The first LPCAMM2 modules for laptops are already being delivered, and desktop mainboards are also expected to be equipped with CAMM2 in future. CAMM2 and LPCAMM2 are not compatible with each other, and even on desktop PCs, customers need to be caref

Desktop is the desktop folder. The method to view the desktop folder is: 1. Open "My Computer" on the desktop; 2. Click to open the C drive; 3. Then click the search box in the upper right corner of the page; 4. Enter "Desktop" Search and you will see the "Desktop" folder in the search results.

Desktop means "desktop" in Chinese, so desktop computer refers to a desktop computer, that is, a desktop computer. Its host, monitor and other equipment are generally relatively independent and generally need to be placed on a computer desk or a special workbench. .

Install ParallelsDesktop18 The first step in installing Windows 11 on your Mac is to download Parallels18Desktop. You can do this by going to the Parallels18 trial page and clicking the Download Free Trial button. The ParallelsDesktop18 installer DMG file will appear in your downloads folder and you can double-click the folder to start the installation. You may receive a warning that ParallelsDesktop is an application you downloaded from the Internet. This is a standard Apple dialog for security purposes. Just click "

Intel's new Arrow Lake desktop CPUs look like they should start appearing on store shelves around October, presenting a new challenge to AMD's Zen 5 lineup. There are no official performance benchmarks from reviews of the new processors just yet. How

Sometimes the win11 system pin cannot be used, and then you cannot enter the desktop. We can also open and run it first, and then set it in the registry. Let’s take a look. win11pin is not available and cannot enter the desktop: 1. First, we press "win+r" on the keyboard and then enter "regedit". 2. Then enter the files below in sequence. 3. Then add the registry, the registry name is "allowdomainpinlogon", and set its value to 1. 4. Finally, you can enter successfully.
