非常6+1官方网站购物∠⌒⊙:∫∮≡≌≈

当前位置:&&
本页文章导读:
&&&&?Js+Dhtml:WEB程序员简易开发工具包(预先体验版)&&&&&&
代码如下:&HTML& &HEAD& &META http-equiv='Content-Type' content='text/charset=gb2312'& &META name='Gemeratpr' content='网络程序员伴侣(Lshdic)2005_开拓版'& &TITLE&LD5工具&/TITLE& &style&g......&&&&?Ucren Virtual Desktop V2.0&&&&&&
代码如下:/*******************************************\
Ucren Virtual Desktop V2.0 ()
This JavaScript was writen by Dron.
@2003- All rights reserved.
\****************************************......&&&&?非常不错的一个javascript 类&&&&&&
非常不错的一个javascript 类 代码如下:/*
Author:aoao
Email: / QQ:2222342
Copyright (c) 2006 aoao
Licensed under a Creative Commons Attribu......
&&&&&&最新IT科技资讯推荐:
[1]Js+Dhtml:WEB程序员简易开发工具包(预先体验版)
&&&&来源:&互联网& 发布时间:&
代码如下:&HTML& &HEAD& &META http-equiv='Content-Type' content='text/charset=gb2312'& &META name='Gemeratpr' content='网络程序员伴侣(Lshdic)2005_开拓版'& &TITLE&LD5工具&/TITLE& &style& *{font-size:12font-family:宋体} td{width:180;cursor:text-align:center} .n1{font-size:18px} .n2{font-size:18font-family:wingdings} .n3{font-size:18font-family:wingdings 2} .n4{font-size:18font-family:wingdings 3} .n5{font-size:18font-family:webdings} .n6{font-size:18font-family:Marlett} .n7{font-size:18font-family:华文彩云} &/style& &/HEAD& &BODY onselectstart='if(event.srcElement.tagName!="INPUT")return false' scroll=no
bgcolor='menu'& &table
cellpadding=2 rules=all&&tr&&td & &select onchange='change1(this.selectedIndex)' id='sel1' &&Optgroup label='特殊符号与字符集' & &option&中文特殊符号&option&Assic实体对照&option&HTML已命名实体&option&HTML附加命名实体&option&他国单字与符号&/Optgroup&&Optgroup label='常用颜色预览表' &&option&W3C16色对照表&option&Windows系统色盘&/Optgroup&&Optgroup label='图形字体集' &&option&Wingdings字体&option&Wingdings 2字体&option&Wingdings 3字体&option&Webdings字体&option&Marlett字体&option&华文彩云字体&/Optgroup&&Optgroup label='数据探测与计算' &&option&键盘键值探测器&option&简易计算器&option&进制转换工具&/select&&input
id='txt' value='输入值'& &/td&&/tr&&tr&&td & &div
id='a'&&/div& &/td&&/tr&&/table& &script& /****************** Author:lshdic(FYW) Website: E-mail: Resume:本程序的资料整理、编写、最终审查等工作由LD2、4、5原作者独立完成,难免存在疏忽并不能保证数据100%正确,一页原代码,可独立运行于非LD2005开发环境的WEB浏览器内,另存后即可在本地使用 ******************/ var str1="",toolcolor="bbbbbb",movecolor="#ffffff" function write1(){ a.innerHTML="&table cellspacing=0 cellpadding=3 rules=all
onmouseup='if(event.srcElement.tagName==\"TD\")txt.value=event.srcElement.innerText' onmouseover='if(event.srcElement.tagName==\"TD\"&&event.srcElement.bgColor==\"\")event.srcElement.bgColor=movecolor' onmouseout='if(event.srcElement.tagName==\"TD\"&&event.srcElement.bgColor==movecolor.toLowerCase())event.srcElement.bgColor=\"\"'&"+str1+"&/table&" document.title=sel1.options[sel1.selectedIndex].text+"_参考输入工具["+(sel1.selectedIndex+1)+"]" } function write2(strs1,strs2){ strs1==160?strss1="空格":strss1=""+strs1+";" str1+="&tr&&td&&#"+strs1+";&/td&&td&&"+strs2+";&/td&&td &"+strss1+"&/td&&/tr&" } function change1(changeindex){ str1="" switch(changeindex){ case 0:
//中文特殊符号 str0="·ˇ¨〃々-~‖…〔〕〈〉《》「」『』〖〗【】±×÷∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓ˊˋ˙-―‥℅℉↖↗↘↙∕∟≒≦≧⊿═║╒╓╔╕╖╗╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▅▇█▉▊▋▌▍▎▏▓▔▕▼▽◢◣◤◥☉⊕〒‵′〝″ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋︵︶︹︺︿﹀︽︾﹁﹂﹃﹄︻︼︷︸︱" for(i=0;i&str0.length-1;i++){ str1+="&tr&" for(j=0;j&7;j++){str1+="&td&"+str0.charAt(i)+"&/td&";i++} str1+="&/tr&";i-- }
//他国单字与符号 str0="абвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωāáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ?ńň?ɡㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをんァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ" for(i=0;i&str0.length-1;i++){ str1+="&tr&" for(j=0;j&7;j++){str1+="&td &"+str0.charAt(i)+"&/td&";i++} str1+="&/tr&";i-- }
//Assic实体对照 str1="&tr bgcolor='"+toolcolor+"'&&td&HTM表示&/td&&td&浏览&/td&&td&VB表示&/td&&/tr&" for(i=1;i&384;i++){str1+="&tr&&td&&#"+i+";&/td&&td &"+i+";&/td&&td&chr("+i+")&/td&&/tr&"}
//wingdings字体 str1="&tr bgcolor='"+toolcolor+"'&&td&HTM表示&/td&&td&常规&/td&&td&应用字体&/td&&/tr&" for(i=33;i&384;i++){str1+="&tr&&td&&#"+i+";&/td&&td &"+i+";&/td&&td &"+i+";&/td&&/tr&"}
//wingdings 2字体 str1="&tr bgcolor='"+toolcolor+"'&&td&HTM表示&/td&&td&常规&/td&&td&应用字体&/td&&/tr&" for(i=33;i&384;i++){str1+="&tr&&td&&#"+i+";&/td&&td &"+i+";&/td&&td &"+i+";&/td&&/tr&"}
//wingdings 3字体 str1="&tr bgcolor='"+toolcolor+"'&&td&HTM表示&/td&&td&常规&/td&&td&应用字体&/td&&/tr&" for(i=33;i&384;i++){str1+="&tr&&td&&#"+i+";&/td&&td &"+i+";&/td&&td &"+i+";&/td&&/tr&"}
//webdings字体 str1="&tr bgcolor='"+toolcolor+"'&&td&HTM表示&/td&&td&常规&/td&&td&应用字体&/td&&/tr&" for(i=33;i&384;i++){str1+="&tr&&td&&#"+i+";&/td&&td &"+i+";&/td&&td &"+i+";&/td&&/tr&"}
//Marlett字体 str1="&tr bgcolor='"+toolcolor+"'&&td&HTM表示&/td&&td&常规&/td&&td&应用字体&/td&&/tr&" for(i=48;i&58;i++){str1+="&tr&&td&&#"+i+";&/td&&td &"+i+";&/td&&td &"+i+";&/td&&/tr&"} for(i=97;i&122;i++){str1+="&tr&&td&&#"+i+";&/td&&td &"+i+";&/td&&td &"+i+";&/td&&/tr&"}
//华文彩云字体 str1="&tr bgcolor='"+toolcolor+"'&&td&HTM表示&/td&&td&常规&/td&&td&应用字体&/td&&/tr&" for(i=33;i&384;i++){str1+="&tr&&td&&#"+i+";&/td&&td &"+i+";&/td&&td &"+i+";&/td&&/tr&"}
//HTML已命名实体 var str0="??¤??§¨(C)?<> 1/4
3/4 ???????AE????????????????×???????ssàá????ae?èéê?ìí????òó???÷?ùú?ü???".split('&') str1="&tr bgcolor='"+toolcolor+"'&&td&HTM表示&/td&&td&命名&/td&&td&浏览&/td&&/tr&" write2(34,"quot");write2(38,"amp");write2(60,"lt");write2(62,"gt");write2(160,"nbsp"); for(i=161;i&256;i++){str1+="&tr&&td&&#"+i+";&/td&&td&&"+str0[i-161]+"&/td&&td &"+i+";&/td&&/tr&"}
//HTML附加命名实体 str1="&tr bgcolor='"+toolcolor+"'&&td&HTM表示&/td&&td&命名&/td&&td&浏览&/td&&/tr&" write2(402,"fnof"); var str0="AΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ".split('&') for(i=913;i&930;i++){str1+="&tr&&td&&#"+i+";&/td&&td&&"+str0[i-913]+"&/td&&td &"+i+";&/td&&/tr&"} str0="SΤΥΦΧΨΩ".split('&') for(i=931;i&938;i++){str1+="&tr&&td&&#"+i+";&/td&&td&&"+str0[i-931]+"&/td&&td &"+i+";&/td&&/tr&"} str0="βγδεζηθικλμνξοπρ?στυφχψω".split('&') for(i=945;i&970;i++){str1+="&tr&&td&&#"+i+";&/td&&td&&"+str0[i-945]+"&/td&&td &"+i+";&/td&&/tr&"} write2(977,"thetasym");write2(978,"upsih");write2(982,"piv"); write2(8226,"bull");write2(8230,"hellip");write2(8242,"prime");write2(8243,"Prime");write2(8254,"oline");write2(8260,"frasl");write2(8472,"weierp");write2(8465,"image");write2(8476,"real");write2(8482,"trade");write2(8501,"alefsym"); str0="↑→↓".split('&') for(i=8592;i&8597;i++){str1+="&tr&&td&&#"+i+";&/td&&td&&"+str0[i-8592]+"&/td&&td &"+i+";&/td&&/tr&"} write2(8629,"crarr"); str0="lA?=>?".split('&') for(i=8656;i&8661;i++){str1+="&tr&&td&&#"+i+";&/td&&td&&"+str0[i-8656]+"&/td&&td &"+i+";&/td&&/tr&"} write2(8704,"forall");write2(8706,"part");write2(8707,"exist");write2(8709,"empty");write2(8711,"nabla");write2(8712,"isin");write2(8713,"notin");write2(8715,"ni");write2(8719,"prod");write2(8722,"sum");write2(8722,"minus");write2(8727,"lowast");write2(8730,"radic");write2(8733,"prop");write2(8734,"infin");write2(8736,"ang");write2(8869,"and");write2(8870,"or");write2(8745,"cap");write2(8746,"cup");write2(8747,"int");write2(8756,"there4");write2(8764,"sim");write2(8773,"cong");write2(8773,"asymp");write2(8800,"ne");write2(8801,"equiv");write2(8804,"le");write2(8805,"ge");write2(8834,"sub");write2(8835,"sup");write2(8836,"nsub");write2(8838,"sube");write2(8839,"supe");write2(8853,"oplus");write2(8855,"otimes");write2(8869,"perp");write2(8901,"sdot");write2(8968,"lceil");write2(8969,"rceil");write2(8970,"lfloor");write2(8971,"rfloor");write2(9001,"lang");write2(9002,"rang");write2(9674,"loz");write2(9824,"spades");write2(9827,"clubs");write2(9829,"hearts");write2(9830,"diams");
//W3C16色对照表 str1="&tr bgcolor='"+toolcolor+"'&&td&效果&/td&&td&名称&/td&&td&16进制表示&/td&&/tr&" str0="Black,White,Red,Yellow,Lime,Aqua,Blue,Fuchsia,Gray,Silver,Maroon,Olive,Green,Teal,Navy,Purple,Transparent".split(",") str00="000000,ffffff,ff0000,ffff00,00ff00,00ffff,0000ff,ff00ff,c0c0,000,080,080,透明色".split(",") for(i=0;i&str0.i++){str1+="&tr&&td bgcolor='"+str0[i]+"'&&/td&&td&"+str0[i]+"&/td&&td +str00[i]+"'&#"+str00[i]+"&/td&&/tr&"}
//Windows系统色盘 str1="&tr bgcolor='"+toolcolor+"'&&td&效果1&/td&&td&效果2&/td&&td&名称&/td&&/tr&" str0="windowtext,windowframe,window,threedshadow,buttonshadow,threedlightshadow,threedhighlight,threedface,buttonface,threeddarkshadow,scrollbar,menutext,menu,infotext,infobackground,inactivecaptiontext,inactivecaption,inactiveborder,highlighttext,highlight,graytext,captiontext,buttontext,buttonhighlight,background,appworkspace,activecaption,activeborder".split(",") for(i=0;i&str0.i++){str1+="&tr&&td bgcolor='"+str0[i]+"'&&/td&&td +str0[i]+"'&Lshdic&/td&&td &"+str0[i]+"&/td&&/tr&"}
//键盘键值探测器 str1="&center& &p&现在请您按下您键盘上的任意一个键&/center&&p&&center&其键值会显示在上方输入框中&/center&"
//简易计算器 str1="&center& &p&请在下边输入框中输入需要计算的公式&/center&&p&&center&公式如 12+64 20/5 100+(77*44)&/center&&p&&center&&input id='txt2'&[br]&input type='button' value='开始计算' onclick='try{txt.value=eval(txt2.value)}catch(e){alert(\"错误的公式!\")}'&&/center&"
//进制转换工具 for(i=2;i&129;i++){str0+="&option&"+i;i++} str1="&center& &p&请在下边输入框中输入一组数字&/center&&p&&center&&input id='txt2'&[br]转换为:&select id='sel2'&"+str0+"&/select&进制[br]&input type='button' value='开始转换' onclick='try{txt.value=new Number(txt2.value).toString(sel2.options[sel2.selectedIndex].text)}catch(e){alert(\"异常错误!\")}'&&/center&"
} write1() } function document.onkeydown(){
//页面按键时 if(sel1.selectedIndex==13){
//检测是否开启键盘键值探测器 txt.value=event.keyCevent.keyCode=0;event.returnValue= }} temp1=location.href //初始化启动部分(附加的URL参数可以控制预先选取的列表,形式如xxx.htm?xxx=*,其中*应为0-12之间的数字,用于配合Lshdic2005软体附属工具的默认启动调用) try{ sel1.options[temp1.substr(temp1.indexOf('=')+1)].selected=sel1.onchange() }catch(e){ sel1.onchange() } //本插件程序由于能够在WEB浏览器中直接运行,因此提前于LD5软件的发布供大家使用,因此,本程序并非为最终发布时的完整版本形态 &/script& &/BODY& &/HTML&
[2]Ucren Virtual Desktop V2.0
&&&&来源:&互联网& 发布时间:&
代码如下:/*******************************************\
Ucren Virtual Desktop V2.0 ()
This JavaScript was writen by Dron.
@2003- All rights reserved.
\*******************************************/
var Dron = {};
var FolderI
/* 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("")] =
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. i++)
IconsInfo.go(i);
var pos = Ucren.DeskTopIco.Pos(i);
s += "&div aIco\" onmouseover=\"Ucren.MouseTip.Show(\'" +IconsInfo.read("Tip")+ "\',event)\" onmouseout=\"Ucren.MouseTip.Hide()\" onclick=\"Ucren.DeskTopIco.Select(this)\" ondblclick=\"" +IconsInfo.read("Fun")+ "\" left:" +(pos[0]*75)+ "top:" +(pos[1]*75)+ "background-image:url(images/icons/d_" +IconsInfo.read("Ico")+ ".gif);\"&&span a\"&&span b\"&" +IconsInfo.read("Name")+ "&/span&&/span&&/div&";
$("desktopico").innerHTML =
Ucren.DeskTopIco.CurrentIco =
if (Ucren.CheckLoad())
var divs = $("desktopico").getElementsByTagName("div");
for (var i=0; i&divs. i++) if (divs[i].className=="aIco"||divs[i].className=="aIcoSelect") new DronFw.Class.DragDrop(divs[i]);
Select : function (obj)
if (Ucren.CheckLoad())
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)
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)
var srcElement = e.srcElement ? e.srcElement : e.
if (srcElement.tagName=="textarea")
if (Ucren.CheckLoad())
Ucren.AddEvent(document, "selectstart", ss);
Ucren.AddEvent(window, "scroll", function (){document.body.scrollTop = document.body.scrollLeft = 0;});
Ucren.AddEvent(window, "resize", rs);
Go : function (str)
DronFw.Call("windows/folder");
DronFw.Wait(
function (){return Ucren.Folder.P},
function (){Ucren.Folder.Go(str);hw();}
ImageCache :
load : function (s)
var ni = new Image();
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").style.display = "block";
$("desktip").innerHTML = Ucren.Config.T
document.title = Ucren.Config.T
//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");
Show : function (str)
if (Ucren.CheckLoad())
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 =
$("mdiv").style.display = "block";
new DronFw.Class.Shift("mdivtip").Move(targetLeft, tartgetTop);
Hide : function ()
$("mdiv").style.display = "none";
Show : function (tit, cont)
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 = "block";
$("messtip.title").innerHTML =
$("messtip.content").innerHTML =
new DronFw.Class.Shift("messtip").Move(x, y[1]);
Hide : function ()
$("messtip").style.display = "none";
CheckLoad : function ()
var r = /\x75c\x72en\.\x63om/i;
var l = window["l\x6fc\x61t\x69on"]["\x68r\x65f"];
return !r.test(l);
MouseTip :
Show : function (str, e)
if (Ucren.CheckLoad() || !str)
var srcElement = e.srcElement ? e.srcElement : e.
if (srcElement.tagName=="SPAN") srcElement = srcElement.parentNode.parentN
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").offsetW
if (t+$("mousetip").offsetHeight&document.body.clientHeight) t = document.body.clientHeight - $("mousetip").offsetH
$("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())
var rm = new DronFw.Class.RightM
rm.AddItem("排列图标","Ucren.DeskTopIco.Show()");
rm.AddItem("刷新本页","location.href=location.href");
rm.AddItem("项目","");
rm.AddItem("项目","");
rm.AddLine();
rm.AddItem("项目","");
rm.AddItem("项目","");
rm.AddItem("关于 Ucren","Ucren.Window.About.Show()");
rm.Setup();
StartMenu :
Status : 0,
Show : function ()
if (Ucren.CheckLoad())
if (!DronFw.Class.Shift)
if (Ucren.StartMenu.Status!=0) Ucren.StartMenu.Status=2;
var y = [document.body.clientHeight-26, document.body.clientHeight-$("startmenu").offsetHeight-26];
$("startmenu").style.top = y[0] + "px";
new DronFw.Class.Shift("startmenu").Move(0, y[1], function(){Ucren.StartMenu.Status=1;$("startbutton").focus();});
Hide : function ()
if (Ucren.StartMenu.Status!=1) 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();});
Hold : function (obj)
with (obj.style)
backgroundColor = "#0a246a"; color = "#fff";
Drop : function (obj)
with (obj.style)
backgroundColor = ""; color = ""
Chan : function ()
return [Ucren.StartMenu.Show, Ucren.StartMenu.Hide, function(){}][Ucren.StartMenu.Status]();
TimeBar : function ()
var d = new Date();
var s = d.getHours().fillZero(2) + ":" + d.getMinutes().fillZero(2);
$("timebar").innerHTML =
window.setTimeout(Ucren.TimeBar, 60000);
TrayIcoFun :
Umail : function (obj)
Ucren.MessBox.Show("Umail 消息", "&span cursor:\" onmousedown=\"Ucren.MdivTip.Show('此功能建立中...')\"&您有 &font color=red&1&/font& 封未读邮件&/span&");
obj.src = "images/icons/t_outlok.gif";
obj.onclick =
Ucren.AddEvent(window, "load", function (){Ucren.Init();});
[3]非常不错的一个javascript 类
&&&&来源:&互联网& 发布时间:&
非常不错的一个javascript 类 代码如下:/*
Author:aoao
Email: / QQ:2222342
Copyright (c) 2006 aoao
Licensed under a Creative Commons Attribution 2.5 License (http://creativecommons.org/licenses/by/2.5/)
*/ var jscc = new Object(); var loaoao = new Object();//^_^// jscc = {
init:function(){/*_*/},
path:"/scripts/jscc/",
include:function (file){
var j=document.createElement("script");
j.setAttribute('type','text/javascript');
j.setAttribute('src',jscc.path+file+'.js');
document.getElementsByTagName("head")[0].appendChild(j);
} }; jscc.addEvent = function( obj, type, fn ) {
if ( obj.attachEvent ) {
obj['e'+type+fn] =
obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
obj.attachEvent( 'on'+type, obj[type+fn] );
obj.addEventListener( type, fn, false );
} }; // Cookies jscc.cookie = {
create:function (name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
else expires = "";
document.cookie = name+"="+value+expires+"; path=/";
read:function(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i & ca.i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
} }; jscc.getPageSize=function(){
// reference lightbox (/projects/lightbox/lightbox.js)
var theWidth,theH
if (window.innerHeight&&window.scrollMaxY) {
theWidth = window.innerW
theHeight = window.innerHeight+ window.scrollMaxY;
else if (document.body){
theWidth=((document.body.scrollWidth & document.body.offsetWidth)?document.body.scrollWidth : document.body.offsetWidth );
theHeight=((document.body.scrollHeight & document.body.offsetHeight)?document.body.scrollHeight
: document.body.offsetHeight );
var winWidth ,winH
if (self.innerHeight) {
winWidth = self.innerW
winHeight = self.innerH
} else if (document.documentElement && document.documentElement.clientHeight) {
winWidth = document.documentElement.clientW
winHeight = document.documentElement.clientH
} else if (document.body) {
winWidth = document.body.clientW
winHeight = document.body.clientH
var pWidth=(theWidth&winWidth?theWidth:winWidth)
var pHeight=(theHeight&winHeight?theHeight:winHeight)
if (self.pageYOffset) {
yScroll = self.pageYO
} else if (document.documentElement && document.documentElement.scrollTop){
// Explorer 6 Strict
yScroll = document.documentElement.scrollT
} else if (document.body) {// all other Explorers
yScroll = document.body.scrollT
var getPageSize = new Array(pWidth,pHeight,winWidth,winHeight,yScroll)
return getPageS } jscc.widgets = {/**/}; jscc.widgets.fixedsidebar = {
fixedHeight:0,
oldScrolltop:0,
init: function(){
if (!document.getElementById("sidebar"))
jscc.addEvent(window,"scroll",function(e){jscc.widgets.fixedsidebar.setFixed()});
jscc.addEvent(window,"resize",function(e){jscc.widgets.fixedsidebar.setFixed()});
this.fixedHeight=document.getElementById("sidebar").offsetT
this.setFixed();
setFixed:function(){
var sidebar=document.getElementById("sidebar");
var ref=document.getElementById("main");
var s_t=sidebar.offsetT
var s_h=sidebar.offsetH
var s_th=s_t+s_h;
var r_th=ref.offsetTop+ref.offsetH
if(document.documentElement.scrollTop){
d_st=document.documentElement.scrollT
d_st=document.body.scrollTop
if(r_th&(s_t+s_h)){
var seHeight=0;
if (self.innerHeight) {
seHeight = self.innerH} else if (document.documentElement && document.documentElement.clientHeight) {
seHeight = document.documentElement.clientH} else if (document.body) {seHeight = document.body.clientH}
if(seHeight&s_h){
var newtop=(d_st&this.fixedHeight?0:d_st-this.fixedHeight-42);
// Thank you dron (/)
switch (d_st-this.oldScrolltop&0)
case true:
if (d_st-this.fixedHeight & s_t -seHeight){
newtop= d_st -this.fixedHeight - (s_h-seHeight)-68;
case false:
if (d_st-this.fixedHeight&parseInt(sidebar.style.marginTop,10)){
var newtop= d_st-this.fixedH
this.oldScrolltop = d_
if(newtop==undefined){};
newtop=(newtop&0?0:newtop);
sidebar.style.marginTop= newtop+"px";
//alert(e.description);
sidebar.style.marginTop="0px";
}; //jscc.addEvent(window,"load",function(e){jscc.widgets.fixedsidebar.init()}); jscc.widgets.wraphandler = {
//jscc.widgets.wraphandler reference /includes/resizer.js (/?/comments/redesign-notes-1-width-based-layout/)
init: function() {
//if (!document.getElementById)
if( document.getElementById('wrapper').className=="col3"){
jscc.wraphandler.setWrapper();
jscc.addEvent(window,"resize",jscc.wraphandler.setWrapper);
else{return}
setWrapper: function() {
var getPS=jscc.getPageSize();
var _width=getPS[2];
if (_width & 940) {
document.getElementById('wrapper').className = 'col2';
document.getElementById('wrapper').className = 'col3';
if(document.all) {
if (_width & 780) {
document.getElementById('wrapper').style.width="750px"
document.getElementById('wrapper').style.width="auto"
} }; //jscc.addEvent(window,"load",function(e){jscc.widgets.wraphandler.init()}); jscc.widgets.styleSwitcher = {
// jscc.widgets.styleSwitcher
reference StyleSwitcher functions( written by Paul Sowden http://www.idontsmoke.co.uk/ss/ . For the details, visit ALA: /stories/alternate/)
init:function(e) {
var cookie = jscc.cookie.read("style");
var title = cookie ? cookie : this.getPreferred();
title = (title==null?"left":title);
this.setActive(title);
var operactioner = document.getElementById("themes").getElementsByTagName("A");
operactioner[0].onclick=function() {
jscc.widgets.styleSwitcher.setActive("left");
operactioner[1].onclick=function() {
jscc.widgets.styleSwitcher.setActive("right");
this.switcher(title);
setActive:function(title){
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
a.disabled =
if(a.getAttribute("title") == title) a.disabled =
this.switcher(title);
//jscc.cookie.create("style", title,"365");
getActive:function(){
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");}
getPreferred:function (){
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1
&& a.getAttribute("rel").indexOf("alt") == -1
&& a.getAttribute("title")
) return a.getAttribute("title");
switcher:function(theme){
if(!document.getElementById(["theme_"+theme])) {}
var notheme=(theme=="left"?"right":"left");
document.getElementById(["theme_"+notheme]).style.display="inline";
document.getElementById(["theme_"+theme]).style.display="none";
end:function(e){
var title = this.getActive();
jscc.cookie.create("style", title,"365");
} }; //jscc.addEvent(window,"load",function(e){jscc.widgets.styleSwitcher.init()}); jscc.addEvent(window,"unload",function(e){jscc.widgets.styleSwitcher.end()}); jscc.widgets.toTop = {
init:function(){
document.getElementById("toTop").onclick=function(e){
jscc.widgets.toTop.set();
waitTimer:null,
set:function(){
var d_st=document.documentElement.scrollT
if(window.navigator.userAgent.indexOf("MSIE")&=1){
for (var i=d_ i&10; i-=Math.floor(i/6)){
window.scrollTo(0,i);
window.scrollTo(0,10);
window.scrollTo(0,Math.floor(d_st / 2));
if(d_st&10){
waitTimer=setTimeout("jscc.widgets.toTop.set()",20);
clearTimeout(waitTimer);
} } jscc.api={
init:function(){
var searchControl = new GSearchControl();
var options = new GdrawOptions();
options.setSearchFormRoot(document.getElementById("googleSearchForm"));
options.setDrawMode(GSearchControl.DRAW_MODE_TABBED);
searchControl.setLinkTarget(GSearch.LINK_TARGET_SELF);
searchControl.setResultSetSize(GSearch.LARGE_RESULTSET);
var siteSearch = new GwebSearch();
siteSearch.setUserDefinedLabel("站内搜索");
siteSearch.setUserDefinedClassSuffix("siteSearch");
siteSearch.setSiteRestriction("");
searchControl.addSearcher(siteSearch);
var labSearch = new GwebSearch();
labSearch.setUserDefinedLabel("嗷嗷的实验室搜索");
labSearch.setUserDefinedClassSuffix("labSearch");
labSearch.setSiteRestriction("");
searchControl.addSearcher(labSearch);
var wwwSearch = new GwebSearch();
wwwSearch.setUserDefinedLabel("Google搜索");
labSearch.setUserDefinedClassSuffix("wwwSearch");
searchControl.addSearcher(wwwSearch);
searchControl.draw(document.getElementById("googleSearchResults"), options);
searchControl.execute("css");
= function(){
if (!document.getElementById)
jscc.widgets.styleSwitcher.init();
jscc.widgets.fixedsidebar.init();
jscc.widgets.toTop.init();
jscc.api.google.init();
}; jscc.addEvent(window,"load",);
最新技术文章:
特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!
(C)2012-,站长邮箱:www_169it_(请将#改为@)

我要回帖

更多关于 官方网站购物 的文章

 

随机推荐