|
Blue Forest http://www.lslnet.com at 6:28 p.m. on August 22, 2006
[Updated] HTC download an unlimited level menu 1.0
[html]
"Link style='mso-footnote-id:ftn1'" http : //www.isyuan.com/star/DSMenu/dsmenu.files/zjf_style.css "rel=" stylesheet "type=" text/css "id=DSMenuStyle>
"Script>
//code By sTarsjz@hotmail.com 2003-5-7
Window.attachEvent ( "onload", function () {window.setTimeout ( "DSMenu.init ()", 10) ;});
Var = DSMenu
{
ImgSrc : "http://www.isyuan.com/star/DSMenu/dsmenu.files/"
XmlData : "menudata.xml"
Arrow : "arrow.gif"
DSMenuCases : [].
DSMenuDivObjects : [].
FlyoutTime : 1000.
Init :
Function () (
Window.status = "data are included in the menu. . . "
StartTime = new Date ()
DSMenu.createDSMenuGroup ();
Var DSMenuBox = document.createElement ( "span");
DSMenuBox.className = "DSMenuBox";
Document.body.appendChild (DSMenuBox);
For (var i=0;i<DSMenu.DSMenuCases.length;i++) (
DSMenu.DSMenuCases[i].childNodes[0].innerHTML = DSMenu.DSMenuCases[i].childNodes[0].innerText;
Document.all.nav.cells[i].innerHTML = "";
Document.all.nav.cells[i].appendChild (DSMenu.DSMenuCases[i]);
}
For (var i=0;i<DSMenu.DSMenuDivObjects.length;i++) (
DSMenuBox.appendChild (DSMenu.DSMenuDivObjects[i]);
Var = DSMenu.DSMenuDivObjects[i]; blockObj
Var = blockObj.clientWidth blockRealWidth - parseInt (blockObj.currentStyle.paddingLeft) - parseInt (blockObj.currentStyle.paddingRight) ;
BlockObj.all.tags itemObjs = var ( "a");
For (var j=0;j<itemObjs.length;j++)
ItemObjs[j].style.width = blockRealWidth;
BlockObj.all.tags imgsObjs = var ( "various factions");
For (var j=0;j<imgsObjs.length;j++)
ImgsObjs[j].align = "right";
}
Window.status = "time" + (new Date () - startTime) + "ms. "
},
CreateDSMenuGroup :
Function () (
Var = menuDateXML_Island.documentElement.childNodes; xmlNodes
For (var i=0;i<xmlNodes.length;i++) (
Var = this.createDSMenuByXMLNode caseItemObj (xmlNodes[i], 0). ItemObj ();
CaseItemObj.setAttribute ( "itemType", "root");
This.DSMenuCases[this.DSMenuCases.length] caseItemObj ;//return = "" nobr>[object] "
}
},
CreateDSMenuByXMLNode :
Function (menuXMLNode, deepth) (
Var = menuXMLNode.getAttribute text ( "text");
MenuXMLNode.getAttribute href = var ( "href");
MenuXMLNode.getAttribute target = var ( "target");
Var = null; childItemsBox
//new DSMenuItem (text, href and target, null)
If (menuXMLNode.hasChildNodes ()) (
Var = new DSMenuBox itemsBox (deepth);
For (var i=0;i<menuXMLNode.childNodes.length;i++) (
ItemsBox.addItem (this.createDSMenuByXMLNode (menuXMLNode.childNodes[i], deepth+1));
}
ItemsBox.boxObj childItemsBox = ();
DSMenu.DSMenuDivObjects[DSMenu.DSMenuDivObjects.length] = childItemsBox;
}
Var = new DSMenuItem itemClass (text, href and target, childItemsBox);
Return itemClass;
},
HideBlock :
Function () (
Var = this; blockObj
This.clearHandle = window.setTimeout (
Function () {blockObj.style.display = "none" ;}
, DSMenu.FlyoutTime
);
},
CancleHide :
Function () (
Window.clearTimeout (this.clearHandle)
}
};
Function DSMenuItem (te, hr, ta, cb) (
This.text = te;
= Infiltrate this.href
This.target = ta;
This.childItemsBox = cb;
This.itemObj =
Function () (
Var obj = document.createElement ( "a");
Obj.innerHTML = this.text;
Obj.href = this.href;
Obj.target = this.target;
Obj.childItemsBox = this.childItemsBox;
If (this.childItemsBox) (
This.childItemsBox.parentItem = obj;
Var arrowObj = document.createElement ( "various factions");
ArrowObj.src + = DSMenu.imgSrc DSMenu.arrow;
= = ArrowObj.onmouseout arrowObj.onmouseover
Function () (
Event.cancelBubble = true;
Event.returnValue = false;
Return false;
}
Obj.appendChild (arrowObj);
}
Obj.onmouseover =
Function () (
Var = this; _currentItem
Var = null; _currentDiv
While (_currentItem.parentNode.itemType> "root") (
_currentDiv = _currentItem.parentNode.parentNode;
_currentDiv.cancleHide ();
_currentItem =_currentDiv.parentItem;
}
If (this.parentNode.parentNode.activeChildDiv) (
This.parentNode.parentNode.activeChildDiv.style.display = "none";
}
If (this.childItemsBox) (
This.childItemsBox.cancleHide ();
This.childItemsBox.style.display = "block";
This.parentNode.parentNode.activeChildDiv = this.childItemsBox;
Var rootFlag = (this.parentNode.itemType ====== "root");
Var = event.x pianLeft - event.offsetX document.body.scrollLeft + + (rootFlag? This.offsetWidth : 3 - 7);
Var = event.y pianTop - document.body.scrollTop event.offsetY + + (rootFlag? This.offsetHeight -4 : -3);
This.childItemsBox.style.left = (+ this.childItemsBox.offsetWidth pianLeft - document.body.scrollLeft) "document.body.clientWidth?pianLeft : (pianLeft - this.offsetWidth - this.childItemsBox.offsetWidth + 12);
This.childItemsBox.style.top = (+ this.childItemsBox.offsetHeight pianTop - document.body.scrollTop) "document.body.clientHeight?pianTop : (+ document.body.scrollTop document.body.clientHeight - this.childItemsBox.offsetHeight-5);
}
};
Obj.onmouseout =
Function () (
Event.cancelBubble = true;
Try{
If (this.contains (event.toElement))
Return;
If (this.childItemsBox) (
If (this.childItemsBox.contains (event.toElement)) (
Return;
}
Else{
This.childItemsBox.style.display = "none";
}
}
If (this.parentNode.parentNode.contains (event.toElement) & this.parentNode.parentNode!=event.toElement)
Return;
If (this.parentNode.parentNode.parentItem.parentNode.parentNode.contains (event.toElement)) (
This.parentNode.parentNode.style.display = "none";
}
Else{
Var = this; _currentItem
Var = null; _currentDiv
While (_currentItem.parentNode.itemType> "root") (
_currentDiv = _currentItem.parentNode.parentNode;
_currentDiv.hide ();
_currentItem =_currentDiv.parentItem;
}
}
}catch (E) {};
};
Obj.onclick = function () (
For (var i=0;i<DSMenu.DSMenuDivObjects.length;i++)
DSMenu.DSMenuDivObjects[i].style.display = "none";
}
Obj.onfocus = function () (
This.blur ();
}
Var tmpObj = document.createElement ( "nobr");
TmpObj.onmouseout = function () = true} {event.cancelBubble
TmpObj.appendChild (obj);
Return tmpObj;
}
}
Function DSMenuBox (deepth) (
This.deepth = deepth;
This.items = [];
This.addItem =
Function (menuItem) (
This.items[this.items.length] = menuItem;
}
This.boxObj =
Function () (
Var obj = document.createElement ( "div");
Obj.style.zIndex this.deepth + = 100;
Obj.cancleHide = DSMenu.cancleHide;
Obj.hide = DSMenu.hideBlock;
Obj.parentItem = null;
Obj.activeChildDiv = null;
Obj.onmouseout = function () (
If (this.contains (event.toElement))
Return;
If (this.parentItem.parentNode.parentNode.contains (event.toElement))
Return;
If (this.activeChildDiv)
If (this.activeChildDiv.contains (event.toElement))
Return;
Try{
Var = this.activeDiv _currentDiv? This.activeDiv : this;
Var = null; _parentItem
Do{
_currentDiv.hide ();
_parentItem =_currentDiv.parentItem;
_currentDiv = _parentItem.parentNode.parentNode;
}while (_parentItem.parentNode.itemType> "Root");
}catch (E) {}
}
For (var i=0;i<this.items.length;i++) (
Obj.appendChild (this.items[i].itemObj ());
}
Return obj;
}
}
"/script>
"Style>
. Nav a{
Color:#000000;
Width:1;
Text-decoration:none;
Font:12px verdana;
}
"/style>
"Body>
"Id=menuDateXML_Island> Xml
"?xml Version=" 1.0 "encoding=" gb2312 "Background
"All>
"Menu text=" web "style='mso-footnote-id:ftn1'" http://www.blueidea.com ""
"DSMenu_ITEM text=" Forum "style='mso-footnote-id:ftn1'" http://www.blueidea.com "target=" _self ""
"DSMenu_ITEM text=" 5DMedia ""
"DSMenu_ITEM text=" page coding "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" page coding "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" BlueIdea ""
"DSMenu_ITEM text=" DWEAM WEAVER "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self ""
"DSMenu_ITEM text=" DWEAM WEAVER "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" DW "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self ""
"DSMenu_ITEM text=" DWEAM WEAVER "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self ""
"DSMenu_ITEM text=" DWEAM WEAVER "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self ""
"/DSMenu_ITEM>
"DSMenu_ITEM text=" DW "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" JS & DreamWeaver "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" FlashActionScript "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" DW "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" JS & DreamWeaver "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" FlashActionScript "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" JS & DreamWeaver "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" FlashActionScript "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" DW "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" JS & DreamWeaver "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" FlashActionScript "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" CSDN ""
"DSMenu_ITEM text=" JS "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" XML "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"/DSMenu_ITEM>
"DSMenu_ITEM text=" resource sites ""
"DSMenu_ITEM text=" material "for style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" desktop Town, ""
"DSMenu_ITEM text=" wallpaper "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" print "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" MSDN ""
"DSMenu_ITEM text=" DHTML "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" HTC "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" XML "style='mso-footnote-id:ftn1'" "target=" _self "everywhere
"/DSMenu_ITEM>
"/DSMenu_ITEM>
"DSMenu_ITEM text=" resource sites ""
"DSMenu_ITEM text=" material "for style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" desktop Town, ""
"DSMenu_ITEM text=" wallpaper "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" print "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" MSDN ""
"DSMenu_ITEM text=" DHTML "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" HTC "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self ""
"DSMenu_ITEM text=" resource sites ""
"DSMenu_ITEM text=" material "for style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" desktop Town, ""
"DSMenu_ITEM text=" wallpaper "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" print "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" MSDN ""
"DSMenu_ITEM text=" DHTML "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" HTC "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" XML "style='mso-footnote-id:ftn1'" "target=" _self "everywhere
"/DSMenu_ITEM>
"/DSMenu_ITEM>
"/DSMenu_ITEM>
"DSMenu_ITEM text=" XML "style='mso-footnote-id:ftn1'" http://www.blueida.com "target=" _self "everywhere
"/DSMenu_ITEM>
"/DSMenu_ITEM>
"/menu>
"Menu text=" Java ""
"DSMenu_ITEM text=" Java "," </DSMenu_ITEM>
"DSMenu_ITEM text=" websphere "" </DSMenu_ITEM>
"DSMenu_ITEM text=" IBM Websphere Information Center, "target=" _blank "style='mso-footnote-id:ftn1'" http : //www-4.ibm.com/software/webservers/appserv/doc/v35/se/infocenter-zh/index.html ""
"DSMenu_ITEM text=" Java "," </DSMenu_ITEM>
"DSMenu_ITEM text=" websphere "" </DSMenu_ITEM>
"/DSMenu_ITEM>
"/menu>
"/all>
"/xml>
"Span Historic Significance of the Transitional Budget" height:200 "" </span>
"Width= table" 666 "height" 28 "border" 0 "cellpadding=" 2 "cellspacing" 1 "bgcolor=" #ff8833 "formal" nav "id=nav>
"Tr bgcolor=" #fffffa ""
"Td width=222>" =
"Td width=222>" =
"Td width=222>" =
"Per
"ShapeID="_x0000_i1025" DrawAspect="Content" ObjectID="_1127825915"> </o:OLEObject>
"Br everywhere
"Br everywhere
"Br everywhere
"Span Historic Significance of the Transitional Budget" height:2000 ""
"Input type=button value=" acquiescence style "onclick=" document.all.DSMenuStyle.href= 'http : //www.isyuan.com/star/DSMenu/dsmenu.files/default_style.css' "everywhere
"Input type=button value=" Microsoft style "onclick=" document.all.DSMenuStyle.href= 'http : //www.isyuan.com/star/DSMenu/dsmenu.files/microsoft_style.css' "everywhere
"Input type=button value=" lighthearted style "onclick=" document.all.DSMenuStyle.href= 'http : //www.isyuan.com/star/DSMenu/dsmenu.files/zjf_style.css' "everywhere
"/span>
"/body>
[/html]
Ie5.0 point here testing http://www.isyuan.com/star/dsmenu/ie5
---------
[url=http://www.isyuan.com/star/dsmenu/download/][color=red][ Download ][/color] |
Collection, yes !!!!:D |
Also improved procedures, we help test -
Ie5.0 point here testing http://www.isyuan.com/star/dsmenu/ie5
Generation time for me to run a menu (ie state see column), there are bugs told me, thank you -
:)
To resolve my memory machines P41.7G
Menu generation time 460 ms |
Xml data and the last time I can do that is the whole menu tree.
This way we can use the same data for different display
[html]
"!DOCTYPE HTML PUBLIC" -//W3C//DTD HTML 4.0 Transitional//EN ""
"HTML>
"HEAD>
"TITLE> DSTree" /TITLE>
"Meta NAME=" Author "CONTENT=" sTarsjz@hotmail.com ""
"Style>
Body, td{font:12px verdana}
#treeBox{background-color:#fffffa;}
#treeBox. Ec{margin:0 5 0 5;}
#treeBox. HasItems{font-weight:bold;height:20px;padding:3 6 0 6;margin:2px;cursor:hand;color:#555555;border : 1px solid #fffffa;}
#treeBox. Items{height:20px;padding:3 6 0 6;margin:1px;cursor:hand;color:#555555;border:1px solid #fffffa;}
"/style>
"Base style='mso-footnote-id:ftn1'" http://www.isyuan.com/star/dstree/ "everywhere
"Script>
//code By star 20003-4-7
HC = var "color:#990000;border:1px solid #cccccc";
SC = var "background-color:#efefef;border:1px solid #cccccc;color:#000000;";
Var = IO null;
InitTree function () (
Var = document.all.menuXML.documentElement; rootn
Var sd = 0
Document.onselectstart = function () {return false;}
Document.all.treeBox.appendChild (createTree (rootn, sd));
}
Function createTree (thisn, sd) (
Var nodeObj = document.createElement ( "span");
Var upobj = document.createElement ( "span");
With (upobj) (
Style.marginLeft = sd*10;
ClassName = thisn.hasChildNodes ()? "HasItems" : "Items";
InnerHTML = "" <img src=expand.gif class=ec> "+ thisn.getAttribute (" text ") +" ";
Onmousedown = function () (
If (event.button> 1) return;
If (this.getAttribute ( "cn")) (
This.setAttribute ( "open" !this.getAttribute ( "open"));
This.cn.style.display = this.getAttribute ( "open")? "Inline" : "none";
This.all.tags ( "various factions") [0].src = this.getAttribute ( "open")? "Expand.gif" : "contract.gif";
}
If (IO) (
IO.runtimeStyle.cssText = "";
IO.setAttribute ( "selected", false);
}
IO = this;
This.setAttribute ( "selected", true);
This.runtimeStyle.cssText = cm
}
Onmouseover = function () (
If (this.getAttribute ( "selected")) return;
HC = this.runtimeStyle.cssText
}
Onmouseout = function () (
If (this.getAttribute ( "selected")) return;
This.runtimeStyle.cssText = "";
}
Oncontextmenu = contextMenuHandle;
Onclick = clickHandle;
}
If (thisn.getAttribute ( "treeId")> null) (
Upobj.setAttribute ( "treeId" thisn.getAttribute ( "treeId"));
}
If (thisn.getAttribute ( "href")> null) (
Upobj.setAttribute ( "href" thisn.getAttribute ( "href"));
}
If (thisn.getAttribute ( "target")> null) (
Upobj.setAttribute ( "target" thisn.getAttribute ( "target"));
}
NodeObj.appendChild (upobj);
NodeObj.insertAdjacentHTML ( "beforeEnd", "" School Official Cites Use ")
If (thisn.hasChildNodes ()) (
Var Rifa
Var nodes = thisn.childNodes;
Var cn = document.createElement ( "span");
Upobj.setAttribute ( "cn", cn);
If (thisn.getAttribute ( "open")> null) (
Upobj.setAttribute ( "open" (thisn.getAttribute ( "open") ====== "true"));
Upobj.getAttribute ( "cn"). Style.display = upobj.getAttribute ( "open")? "Inline" : "none";
If (!upobj.getAttribute ( "open")) upobj.all.tags ( "various factions") [0].src = "contract.gif";
}
For (i=0;i<nodes.length;cn.appendChild (createTree (nodes[i++], sd+1)));
NodeObj.appendChild (cn);
}
Else{
Upobj.all.tags ( "various factions") [0].src = "endnode.gif";
}
Return nodeObj;
}
Window.onload = initTree;
"/script>
"Script>
ClickHandle function () (
4003rd your code here
}
ContextMenuHandle function () (
Event.returnValue = false;
This.getAttribute treeId = var ( "treeId");
4003rd your code here
}
"/script>
"/HEAD>
"BODY>
"Id=menuXML> Xml
"?xml Version=" 1.0 "encoding=" gb2312 "Background
"All>
"Menu text=" web "style='mso-footnote-id:ftn1'" http://www.blueidea.com ""
"DSMenu_ITEM text=" Forum "style='mso-footnote-id:ftn1'" http://www.blueidea.com "target=" _self ""
"DSMenu_ITEM text=" 5DMedia ""
"DSMenu_ITEM text=" page coding "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" page coding "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" BlueIdea ""
"DSMenu_ITEM text=" DWEAM WEAVER "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self ""
"DSMenu_ITEM text=" DWEAM WEAVER "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" DW "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self ""
"DSMenu_ITEM text=" DWEAM WEAVER "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self ""
"DSMenu_ITEM text=" DWEAM WEAVER "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self ""
"/DSMenu_ITEM>
"DSMenu_ITEM text=" DW "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" JS & DreamWeaver "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" FlashActionScript "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" DW "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" JS & DreamWeaver "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" FlashActionScript "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" JS & DreamWeaver "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" FlashActionScript "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" DW "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" painted "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" irrigation "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" JS & DreamWeaver "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" FlashActionScript "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" CSDN ""
"DSMenu_ITEM text=" JS "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" XML "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"/DSMenu_ITEM>
"DSMenu_ITEM text=" resource sites ""
"DSMenu_ITEM text=" material "for style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" desktop Town, ""
"DSMenu_ITEM text=" wallpaper "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" print "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" MSDN ""
"DSMenu_ITEM text=" DHTML "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" HTC "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" XML "style='mso-footnote-id:ftn1'" "target=" _self "everywhere
"/DSMenu_ITEM>
"/DSMenu_ITEM>
"DSMenu_ITEM text=" resource sites ""
"DSMenu_ITEM text=" material "for style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" desktop Town, ""
"DSMenu_ITEM text=" wallpaper "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" print "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" MSDN ""
"DSMenu_ITEM text=" DHTML "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" HTC "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self ""
"DSMenu_ITEM text=" resource sites ""
"DSMenu_ITEM text=" material "for style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" desktop Town, ""
"DSMenu_ITEM text=" wallpaper "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" print "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"/DSMenu_ITEM>
"DSMenu_ITEM text=" MSDN ""
"DSMenu_ITEM text=" DHTML "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" HTC "style='mso-footnote-id:ftn1'" http://www.info.gov.hk/tcu "target=" _self "everywhere
"DSMenu_ITEM text=" XML "style='mso-footnote-id:ftn1'" "target=" _self "everywhere
"/DSMenu_ITEM>
"/DSMenu_ITEM>
"/DSMenu_ITEM>
"DSMenu_ITEM text=" XML "style='mso-footnote-id:ftn1'" http://www.blueida.com "target=" _self "everywhere
"/DSMenu_ITEM>
"/DSMenu_ITEM>
"/menu>
"Menu text=" Java ""
"DSMenu_ITEM text=" Java "," </DSMenu_ITEM>
"DSMenu_ITEM text=" websphere "" </DSMenu_ITEM>
"DSMenu_ITEM text=" IBM Websphere Information Center, "target=" _blank "style='mso-footnote-id:ftn1'" http : //www-4.ibm.com/software/webservers/appserv/doc/v35/se/infocenter-zh/index.html ""
"DSMenu_ITEM text=" Java "," </DSMenu_ITEM>
"DSMenu_ITEM text=" websphere "" </DSMenu_ITEM>
"/DSMenu_ITEM>
"/menu>
"/all>
"/xml>
"Historic Significance of the Transitional Budget table" position:absolute;left:100;top:100; ""
"Tr><td id=treeBox Historic Significance of the Transitional Budget" width:400px;height:200px;border:1px solid #cccccc;padding:5 3 3 5.00 "valign=top></td></tr>
"Tr><td Historic Significance of the Transitional Budget" font:10px verdana;color:#999999 "align=right>by" Differences color=#660000>sTar</font><br> 2003-4-8</td></tr>
"ShapeID="_x0000_i1025" DrawAspect="Content" ObjectID="_1127825915"> </o:OLEObject>
"/BODY>
"/HTML>
[/html] |
P4 1.7G 256M Fourth testing time 1362 1302 1382 1432ms IE6.0sp1 |
Now whether the test is not reflected in the sub-menu screen should be exceeded if the hawkers : D |
I like this menu. Demonstrated natural point.
Http://www.3dapple.com/index.asp |
600/384MB PIII
871 711 731 701 |
Interesting :)
1. Ie built-in parser Xml node traversal is this?
2. Compatibility how to rewrite Can background? |
I ie5 illegal under regular browser
Time and time ie6 found more than ie5 oh.
|
Pairs ie5 mistake
Illegal operation closed |
Thank you ~ ~
To LeXRus, ie carrying the Xml parser too well, I used DOM node traversal, DOM is not dependent on language and platform, so there is no problem with the background transplant
Ie5 ps : it is not good, but I should have no problem win2000+ie5, Win98 is not clear.
To the upper floors, you have Win98 is CLIENT |
AMD K6-2 450/128MB
Time 4326 |
Jimjiang 741 milliseconds
IE6 591 milliseconds
PIII 833M 256M-SD
2M ADSL |
Duron 900 2742s |
Waste good time! But it is true! |
Landlord, there are no pictures on the website is no script, Thank you! ! !
|
Windows xp C366A 2273 2185 2188ms |
Win2003 IE6.0 P4 256M
672ms |
Thunderbird 1G,256 memory, ie6
601 milliseconds
Also renewable times 401,441. . . |
Thank you!
Statistics for a moment, the data does not exceed 100 words, the majority of machines to be completed in 1 seconds menu generation, the rate was still acceptable : D
HTC Packaging better soon, waiting. . . : P |
The absence of sp2 ie5 fault, in win2k platform. |
Software can be a very easy! |
[color=red][url=http://www.isyuan.com/star/dsmenu/download/][color=red][ Download. . . ][/color][/color]
On the basis of what the original code optimization, encapsulated into htc convenience.
Thank you -
;) |
: : Ah not download |
Just wrong address
Now it ~ :) |
What http://www.pconline.com.cn/market/gz/ to the rim, how to write zjf_style.css |
Menu disappeared delay ah |
Yes, there were some delays in the operation of this is to better sense.
The delay time can be set up, if we do not want to delay time, then held on DSMenuFlyoutTime=0 |
Support! Really selfless people ah, thank you! |
P4 1.7 256MB
875, 735, 1187 |
If the main menu to realize how to use pictures?
|
Learn from you! |
Thank you, I need to find a |
Why has no one can Banggemang table under each menu will be renewable deformation www.hzga.gov.cn/index9.asp That is why |
Have no one to turn to for help on this busy? ? ? |
|