亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tree.js

?? 電信的網廳的整站代碼
?? JS
?? 第 1 頁 / 共 2 頁
字號:
XMLTree.prototype.parseTree = function () {
	var state = this.xmlDoc.readyState;
	if (state == 4)
	{
		var err = this.xmlDoc.parseError;
		if (err.errorCode != 0) {
			alert("菜單樹加載失敗");
			return false;
		}
		else {
			this.xmlDoc = this.xmlDoc.childNodes[1];
			this.initTree();
			this.attachTree();
			if (this.parent == null) {		//如果這是根的話,則附加事件
				if ( this.doc.getAttribute("attchEvented") == null ) {
					var f = new Function("event",this.id+".doClick()");
					//this.doc.attachEvent("onmouseup",f);
					this.doc.attachEvent("onclick",f);
					f = new Function("event",this.id+".doDblClick()");
					this.doc.attachEvent("ondblclick",f);
					f = new Function("event",this.id+".doMouseOver()");
					this.doc.attachEvent("onmouseover",f);
					f = new Function("event",this.id+".doMouseOut()");
					this.doc.attachEvent("onmouseout",f);
				
					this.doc.attchEvented = "1";
				}
			}
		}
	}
}

//初始化xml樹
XMLTree.prototype.initTree = function () {
	if (this.xmlDoc == null) return;
	if (this.parent == null) {		//如果這是樹根
		this.dblClick = (this.xmlDoc.getAttribute("dbl-click") == "true") ? true : false;
		this.openAction = (this.xmlDoc.getAttribute("open-action") == "true") ? true : false;
		//指定節點是否已經打開(此節點為根,這是取默認值)
		this.isOpened = false;
		//節點的樣式和內容賦值(此節點為根,這是取默認值)
		this.autoRefresh = (this.xmlDoc.getAttribute("auto-refresh") == "true") ? true : false;
		this.textColor = (this.xmlDoc.getAttribute("text-color") == null) ? this.textColor : this.xmlDoc.getAttribute("text-color");
		this.overTextColor = (this.xmlDoc.getAttribute("over-text-color") == null) ? this.overTextColor : this.xmlDoc.getAttribute("over-text-color");
		this.selectedTextColor = (this.xmlDoc.getAttribute("selected-text-color") == null) ? this.selectedTextColor : this.xmlDoc.getAttribute("selected-text-color");
		this.backgroundColor = (this.xmlDoc.getAttribute("background-color") == null) ? this.backgroundColor : this.xmlDoc.getAttribute("background-color");
		this.overBackgroundColor = (this.xmlDoc.getAttribute("over-background-color") == null) ? this.overBackgroundColor : this.xmlDoc.getAttribute("over-background-color");
		this.selectedBackgroundColor = (this.xmlDoc.getAttribute("selected-background-color") == null) ? this.selectedBackgroundColor : this.xmlDoc.getAttribute("selected-background-color");
		this.underLine = (this.xmlDoc.getAttribute("under-line") == "true") ? true : false;
		this.overUnderLine = (this.xmlDoc.getAttribute("over-under-line") == "false") ? false : true;
		this.selectedUnderLine = (this.xmlDoc.getAttribute("selected-under-line") == "true") ? true : false;
		this.fontSize = (this.xmlDoc.getAttribute("font-size") == null) ? this.fontSize : this.xmlDoc.getAttribute("font-size");
		this.cursor = (this.xmlDoc.getAttribute("cursor") == null) ? this.cursor : this.xmlDoc.getAttribute("cursor");
		this.paddingLeft = (this.xmlDoc.getAttribute("padding-left") == null) ? this.paddingLeft : this.xmlDoc.getAttribute("padding-left");
		this.paddingTop = (this.xmlDoc.getAttribute("padding-top") == null) ? this.paddingTop : this.xmlDoc.getAttribute("padding-top");
		this.spaceWidth = (this.xmlDoc.getAttribute("space-width") == null) ? this.spaceWidth : this.xmlDoc.getAttribute("space-width");
		this.leafPaddingLeft = (this.xmlDoc.getAttribute("leaf-padding-left") == null) ? this.leafPaddingLeft : this.xmlDoc.getAttribute("leaf-padding-left");
		this.openFlag = (this.xmlDoc.getAttribute("open-flag") == null) ? this.openFlag : this.xmlDoc.getAttribute("open-flag");
		this.closeFlag = (this.xmlDoc.getAttribute("close-flag") == null) ? this.closeFlag : this.xmlDoc.getAttribute("close-flag");
		this.openFolder = (this.xmlDoc.getAttribute("open-folder") == null) ? this.openFolder : this.xmlDoc.getAttribute("open-folder");
		this.closeFolder = (this.xmlDoc.getAttribute("close-folder") == null) ? this.closeFolder : this.xmlDoc.getAttribute("close-folder");
		this.leafImage = (this.xmlDoc.getAttribute("leaf-image") == null) ? this.leafImage : this.xmlDoc.getAttribute("leaf-image");
	}
	//下面是循環調用,生成此節點節點的每一個子節點
	for (var i=0;i<this.xmlDoc.childNodes.length;i++)	{
		var child = this.xmlDoc.childNodes[i];
		var node = new XMLTree(child.getAttribute("id"));		//生成一個新節點
		node.parent = this;		//指定節點的父親
		node.root = this.root;		//指定節點的根

		//指定節點是否已經打開
		node.isOpened = (child.getAttribute("opened") == "true") ? true : false;
		//節點的樣式和內容賦值
		node.ref = (child.getAttribute("ref") == null) ? "" : child.getAttribute("ref");
		node.autoRefresh = (child.getAttribute("auto-refresh") == "true") ? true : false;
		node.text = (child.getAttribute("text") == null) ? "" : child.getAttribute("text");
		node.title = (child.getAttribute("title") == null) ? node.text : child.getAttribute("title");
		node.textColor = (child.getAttribute("text-color") == null) ? this.textColor : child.getAttribute("text-color");
		node.overTextColor = (child.getAttribute("over-text-color") == null) ? this.overTextColor : child.getAttribute("over-text-color");
		node.selectedTextColor = (child.getAttribute("selected-text-color") == null) ? this.selectedTextColor : child.getAttribute("selected-text-color");
		node.backgroundColor = (child.getAttribute("background-color") == null) ? this.backgroundColor : child.getAttribute("background-color");
		node.overBackgroundColor = (child.getAttribute("over-background-color") == null) ? this.overBackgroundColor : child.getAttribute("over-background-color");
		node.selectedBackgroundColor = (child.getAttribute("selected-background-color") == null) ? this.selectedBackgroundColor : child.getAttribute("selected-background-color");
		node.underLine = (child.getAttribute("under-line") == "true") ? true : false;
		node.overUnderLine = (child.getAttribute("over-under-line") == "false") ? false : true;
		node.selectedUnderLine = (child.getAttribute("selected-under-line") == "true") ? true : false;
		node.fontSize = (child.getAttribute("font-size") == null) ? this.fontSize : child.getAttribute("font-size");
		node.cursor = (child.getAttribute("cursor") == null) ? this.cursor : child.getAttribute("cursor");
		node.paddingLeft = (child.getAttribute("padding-left") == null) ? this.paddingLeft : child.getAttribute("padding-left");
		node.paddingTop = (child.getAttribute("padding-top") == null) ? this.paddingTop : child.getAttribute("padding-top");
		node.spaceWidth = (child.getAttribute("space-width") == null) ? this.spaceWidth : child.getAttribute("space-width");
		node.leafPaddingLeft = (child.getAttribute("leaf-padding-left") == null) ? this.leafPaddingLeft : child.getAttribute("leaf-padding-left");
		node.openFlag = (child.getAttribute("open-flag") == null) ? this.openFlag : child.getAttribute("open-flag");
		node.closeFlag = (child.getAttribute("close-flag") == null) ? this.closeFlag : child.getAttribute("close-flag");
		node.openFolder = (child.getAttribute("open-folder") == null) ? this.openFolder : child.getAttribute("open-folder");
		node.closeFolder = (child.getAttribute("close-folder") == null) ? this.closeFolder : child.getAttribute("close-folder");
		node.leafImage = (child.getAttribute("leaf-image") == null) ? this.leafImage : child.getAttribute("leaf-image");
		node.href = (child.getAttribute("href") == null) ? "" : child.getAttribute("href");

		this.menuNode[this.menuNode.length] = node;		//加入一個新節點
		node.xmlDoc = child;
		node.initTree();		//遞歸調用,加載此節點的子節點
	}
}
//附加文檔對象
XMLTree.prototype.attachTree = function () {
	if (this.menuNode.length == 0) return;	//如果是沒有加載的引用節點或者是葉子節點,則返回
	var container = null;
	if (this.parent == null) {
		container = this.doc;
	}
	else {
		container = document.createElement("DIV");
		container.style.paddingLeft = this.paddingLeft;		//設置縮進
		container.style.paddingTop = this.paddingTop;		//設置上邊距
		container.style.width = "100%";
		if (this.getType() == "ref") {		//如果是引用節點,則標識打開和已經加載
			this.isOpened = true;
			this.isLoaded = true;
		}
		
		if (this.isOpened) {
			container.style.display = "block";
		}
		else {
			container.style.display = "none";
		}

	}
	this.doc.appendChild(container);

	for (var i=0;i<this.menuNode.length;i++) {
		var node = this.menuNode[i];
		var oDiv = document.createElement("DIV");
		oDiv.id = this.root.id + node.id;
		//oDiv.style.width = "100%";  // by janage 去掉這個寬度限制,以允許出現滾動條。
		var html = "";
		html += '<table title="' + node.title + '"><tr><td style="width:1px;vertical-align:middle;">';
		html += (node.getType() == "leaf") ? "" : ('<img src="' + (node.isOpened ? node.openFlag : node.closeFlag) + '">');
		html += '</td><td style="width:1px;padding-left:' + ((node.getType() == "leaf") ? node.leafPaddingLeft : node.spaceWidth) + ';vertical-align:middle;"><img src="';
		html += (node.getType() == "leaf") ? node.leafImage : (node.isOpened ? node.openFolder : node.closeFolder);
		html += '"></td><td style="vertical-align:middle;' + ((node.getType() == "leaf") ? "padding-top:" + node.paddingTop + ";" : "") + 'padding-left:' + node.spaceWidth + ';" nowrap><span style="cursor:' + node.cursor + ';font-size:' + node.fontSize + ';color:' + node.textColor + ';background-color:' + node.backgroundColor + ';text-decoration:' + (node.underLine ? "underline" : "none")+ ';">' + node.text + '</span></td></tr></table>';
		oDiv.innerHTML = html;
		container.appendChild(oDiv);
		node.doc = oDiv;			//設置文檔對象
		node.attachTree();			//遞歸樹
	}
}
//根據傳入的對象找到相應的節點
XMLTree.prototype.getNode = function (oE) {
	while (oE.tagName != "DIV" && oE.tagName != "BODY")	{
		oE = oE.parentElement;
	}
	if (oE.tagName == "BODY") return;
	return this.root.getMenuItem(oE.id.substr(this.root.id.length));
}
//處理onmouseover事件
XMLTree.prototype.doMouseOver = function () {
	var oE = window.event.srcElement;
	if (oE.tagName != "SPAN") return;	//如果不是移出到文字上,直接返回
	var node = this.getNode(oE);		//得到此節點的對象
	if (node == null)	return;			//如果此節點對象為null,則返回
	if (node.isSelected) return;		//如果此節點對象已經被選中,則返回
	with (oE.style) {
		color = node.overTextColor;
		backgroundColor = node.overBackgroundColor;
		textDecoration = node.overUnderLine ? "underline" : "none";
	}
}
//處理onmouseout事件
XMLTree.prototype.doMouseOut = function () {
	var oE = window.event.srcElement;
	if (oE.tagName != "SPAN") return;	//如果不是移動到文字上,直接返回
	var node = this.getNode(oE);		//得到此節點的對象
	if (node == null)	return;			//如果此節點對象為null,則返回
	if (node.isSelected) return;		//如果此節點對象已經被選中,則返回
	with (oE.style) {
		color = node.textColor;
		backgroundColor = node.backgroundColor;
		textDecoration = node.underLine ? "underline" : "none";
	}
}
//處理onclick事件
XMLTree.prototype.doClick = function () {
	var oE = window.event.srcElement;
	if (oE.tagName != "SPAN" && oE.tagName != "IMG") return;	//如果不是單擊到文字或者圖片上,直接返回
	var node = this.getNode(oE);		//得到此節點的對象
	if (node == null)	return;			//如果此節點對象為null,則返回
	var doOpen = false;			//標識是否有展開動作
	//如果是點擊在文字上
	if (oE.tagName == "SPAN") {
		if (node.root.selectedNode != node)	{
			if (node.root.selectedNode != null) node.root.selectedNode.unSelected();	//取消選中上一個被選中的節點
			if (!node.isSelected) {		//如果當前節點沒有被選中
				node.selected();	//選中當前的節點
				node.root.selectedNode = node;	//記住當前被選中的節點
			}
		}

		if (node.href != "") {
			window.location.href = node.href;		//定向文字上的鏈接
		}

		if (!node.root.dblClick) {	//如果不是雙擊節點才打開/關閉節點,也就是單擊就打開/關閉節點
			if (node.isOpened) {
				node.close();
			}
			else {
				node.open();
				doOpen = true;
			}
		}
	}
	else {		//如果是點擊到圖片上,則直接打開/關閉節點
		if (node.isOpened) {
			node.close();
		}
		else {
			node.open();
			doOpen = true;
		}
	}
	if (doOpen)	{	//如果有展開動作,需要判斷展開動作的行為
		if (node.root.openAction)	{		//說明需要關閉其它節點
			node.closeAllNode();
		}
	}
}
//處理ondblclick事件
XMLTree.prototype.doDblClick = function () {
	if (!this.root.dblClick) return;	//如果不是必須通過雙擊才展開/關閉節點,則直接返回
	var oE = window.event.srcElement;
	if (oE.tagName != "SPAN") return;	//如果不是雙擊到文字上,直接返回
	var node = this.getNode(oE);		//得到此節點的對象
	if (node == null)	return;			//如果此節點對象為null,則返回

	if (node.root.selectedNode != null) node.root.selectedNode.unSelected();	//取消選中上一個被選中的節點
	node.selected();	//選中當前的節點
	node.root.selectedNode = node;	//記住當前被選中的節點

	if (node.href != "") {
		window.location.href = node.href;		//定向文字上的鏈接
	}

	if (node.isOpened) {
		node.close();
	}
	else {
		node.open();
		if (node.root.openAction) {		//說明需要關閉其它節點
			node.closeAllNode();
		}
	}
}
//關閉除自身節點之外的所有節點
XMLTree.prototype.closeAllNode = function () {
	if (this.parent == null) return;		//已經到了根
	var parentNode = this.parent;
	for (var i=0;i<parentNode.menuNode.length;i++) {	//循環關閉每一個子節點
		var childnode = parentNode.menuNode[i];
		if (childnode.isOpened)	{		//如果子節點已經打開
			if (childnode != this) {	//如果子節點不是當前節點
				childnode.close();
			}
		}
	}
	parentNode.closeAllNode();		//繼續關閉父節點之外的所有節點(遞歸調用)
}
//2.0:將自身節點或者指定的id的節點的父節點展開(2.1修正bug)
XMLTree.prototype.openParent = function (nodeId) {
	var node = this.getMenuItem(nodeId);
	if (node == null) node = this;
	if (node.parent == null) {
		return;
	}
	node.parent.openParent();
	node.open();
	if (node.root.selectedNode != node)	{
		if (node.root.selectedNode != null) node.root.selectedNode.unSelected();	//取消選中上一個被選中的節點
		if (!node.isSelected) {		//如果當前節點沒有被選中
			node.selected();	//選中當前的節點
			node.root.selectedNode = node;	//記住當前被選中的節點
		}
	}
}
//2.01:將自身節點或者指定href節點的父節點展開
XMLTree.prototype.openParentByHref = function (href) {
	var node = this.getMenuItemByHref(href);
	if (node == null) return;
	node.openParent();
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
26uuu亚洲综合色欧美| 欧美乱妇15p| 风间由美一区二区三区在线观看| 日韩电影免费一区| 五月综合激情婷婷六月色窝| 亚洲综合清纯丝袜自拍| 一区二区三区欧美久久| 亚洲一区二区成人在线观看| 亚洲综合成人网| 亚洲国产欧美日韩另类综合| 亚洲精品视频观看| 午夜电影网一区| 麻豆freexxxx性91精品| 精品一区免费av| 国产成人精品在线看| 高清不卡一二三区| 色综合一个色综合| 91高清在线观看| 欧美一区二区视频网站| 精品女同一区二区| 中文字幕国产精品一区二区| 亚洲欧美经典视频| 丝袜亚洲另类丝袜在线| 蜜臀av性久久久久蜜臀aⅴ流畅 | 日本亚洲三级在线| 精品一区二区三区影院在线午夜| 国产麻豆精品在线观看| 色综合咪咪久久| 欧美一卡二卡在线| 国产精品久久久久久福利一牛影视| 亚洲女人的天堂| 久久电影网电视剧免费观看| 99精品欧美一区二区三区综合在线| 欧美午夜精品一区二区三区| www欧美成人18+| 一区二区高清免费观看影视大全| 激情成人综合网| 91久久线看在观草草青青| 欧美成人精品福利| 亚洲黄色尤物视频| 黑人巨大精品欧美一区| 色94色欧美sute亚洲13| 久久亚洲一级片| 午夜精品成人在线视频| heyzo一本久久综合| 欧美精品九九99久久| 国产精品福利一区二区三区| 日韩福利电影在线| 91在线视频官网| 久久久www成人免费无遮挡大片| 亚洲成人黄色小说| 91在线无精精品入口| 久久人人超碰精品| 日韩精品电影一区亚洲| 色综合久久天天综合网| 国产欧美精品一区二区色综合朱莉| 亚洲福利视频一区二区| 91麻豆国产在线观看| 国产日韩欧美制服另类| 激情五月婷婷综合网| 欧美日韩一卡二卡| 一区二区三区四区亚洲| 97超碰欧美中文字幕| 国产亚洲欧美日韩在线一区| 欧美a一区二区| 欧美久久久久免费| 亚洲精品成人少妇| 97精品久久久久中文字幕 | 国产精品不卡一区二区三区| 久久国产福利国产秒拍| 欧美一区二区精品| 日本中文字幕不卡| 欧美一区二区免费| 久久99精品国产麻豆婷婷| 制服丝袜亚洲播放| 午夜久久久影院| 欧美日韩精品电影| 日韩精品亚洲一区二区三区免费| 欧美视频在线一区二区三区| 一区二区三区色| 欧美色爱综合网| 婷婷综合五月天| 欧美精品乱码久久久久久| 首页欧美精品中文字幕| 91精品福利在线一区二区三区 | 午夜精品福利在线| 91精品国产综合久久蜜臀 | 欧美—级在线免费片| 成人午夜大片免费观看| 亚洲欧洲在线观看av| 99精品视频一区二区三区| 亚洲乱码国产乱码精品精小说 | 精品国产乱码久久久久久夜甘婷婷| 日韩精品电影在线| 欧美精品一区二区精品网| 国产乱色国产精品免费视频| 亚洲国产电影在线观看| 色天使色偷偷av一区二区| 一区二区三区在线高清| 欧美一区二区三区免费大片 | 亚洲三级久久久| 欧美三级电影网| 另类的小说在线视频另类成人小视频在线 | 国产在线麻豆精品观看| 国产精品久久久久一区二区三区| 色婷婷亚洲精品| 日韩成人精品在线观看| 欧美极品少妇xxxxⅹ高跟鞋 | 欧美在线观看视频一区二区| 免费欧美高清视频| 欧美韩国日本一区| 欧美日韩免费不卡视频一区二区三区| 日韩不卡一区二区三区| 国产精品福利一区| 日韩欧美成人激情| 在线视频你懂得一区| 国产在线不卡一区| 一区二区三区在线播放| 国产日韩欧美精品在线| 欧美亚洲综合久久| 成人精品免费视频| 午夜精品久久久久久久久久 | 在线播放日韩导航| av中文字幕不卡| 黄色小说综合网站| 午夜成人免费视频| 一区二区三区波多野结衣在线观看| 欧美www视频| 欧美另类久久久品| 91色九色蝌蚪| 高清日韩电视剧大全免费| 蜜桃视频免费观看一区| 亚洲一区二区三区在线| 中文在线一区二区| 久久久精品影视| 日韩精品在线看片z| 欧洲一区二区三区在线| 成人精品小蝌蚪| 国产精品自拍毛片| 国产在线精品免费av| 美洲天堂一区二卡三卡四卡视频| 亚洲激情综合网| 亚洲色图.com| 亚洲欧洲性图库| 中文字幕精品在线不卡| 中文字幕欧美激情| 国产精品久久久久久久久免费樱桃| 日韩精品资源二区在线| 欧美电影免费观看高清完整版在线| 7777精品伊人久久久大香线蕉超级流畅 | 国产精品成人网| 国产日韩高清在线| 国产午夜精品福利| 久久久久久久久99精品| 久久久久久久久99精品| 国产欧美精品一区二区色综合朱莉| 久久久久久久久久美女| 国产欧美视频在线观看| 中文字幕av一区 二区| 中文字幕av资源一区| 亚洲视频一二三区| 亚洲精品中文在线影院| 亚洲另类一区二区| 亚洲一区二区三区三| 午夜免费久久看| 捆绑变态av一区二区三区| 激情都市一区二区| 国产91对白在线观看九色| 成人精品国产一区二区4080| 91在线丨porny丨国产| 欧美自拍偷拍午夜视频| 欧美精品在欧美一区二区少妇| 3atv一区二区三区| 国产欧美日韩一区二区三区在线观看| 国产女人18毛片水真多成人如厕 | 91小视频在线| 欧美亚洲一区三区| 精品国产乱码久久| 亚洲天堂福利av| 午夜视频久久久久久| 国产老女人精品毛片久久| 91亚洲精品乱码久久久久久蜜桃| 欧美三级三级三级爽爽爽| 蜜臀av亚洲一区中文字幕| 男女男精品视频| 97精品久久久午夜一区二区三区| 日韩电影在线观看电影| 国产麻豆91精品| 欧美性猛交xxxx黑人交| 精品少妇一区二区三区| 国产精品短视频| 麻豆91在线看| 在线日韩国产精品| 精品国产乱子伦一区| 亚洲精品免费在线观看| 国产一二精品视频| 欧美日韩国产乱码电影| 国产精品全国免费观看高清| 美女视频免费一区| 欧美日韩在线播放三区四区|