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

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

?? fcdtree.js

?? oa辦公系統
?? JS
字號:
/*--------------------------------------------------|

| dTree 2.05 | www.destroydrop.com/javascript/tree/ |

|---------------------------------------------------|

| Copyright (c) 2002-2003 Geir Landr?              |

|                                                   |

| This script can be used freely as long as all     |

| copyright messages are intact.                    |

|                                                   |

| Updated: 17.04.2003                               |

|--------------------------------------------------*/



// Node object

function Node(id, pid, name, url, title, target, icon, iconOpen,open) {

	this.id = id;

	this.pid = pid;

	this.name = name;

	this.url = url;

	this.title = title;

	this.target = target;

	this.icon = icon;

	this.iconOpen = iconOpen;

	this._io = open || false;

	this._is = false;

	this._ls = false;

	this._hc = false;

	this._ai = 0;

	this._p;

};



// Tree object

function dTree(objName) {

	this.config = {

		target					: null,

		folderLinks			: true,

		useSelection		: true,

		useCookies			: true,

		useLines				: true,

		useIcons				: true,

		useStatusText		: false,

		closeSameLevel	: false,

		inOrder					: false

	}

	this.icon = {

		root				: '../common/defaultFa/imgs/base.gif',

		folder			: '../common/defaultFa/imgs/folder.gif',

		folderOpen	: '../common/defaultFa/imgs/folderopen.gif',

		node				: '../common/defaultFa/imgs/page.gif',

		empty				: '../common/defaultFa/imgs/empty.gif',

		line				: '../common/defaultFa/imgs/line.gif',

		join				: '../common/defaultFa/imgs/join.gif',

		joinBottom	: '../common/defaultFa/imgs/joinbottom.gif',

		plus				: '../common/defaultFa/imgs/plus.gif',

		plusBottom	: '../common/defaultFa/imgs/plusbottom.gif',

		minus				: '../common/defaultFa/imgs/minus.gif',

		minusBottom	: '../common/defaultFa/imgs/minusbottom.gif',

		nlPlus			: '../common/defaultFa/imgs/nolines_plus.gif',

		nlMinus			: '../common/defaultFa/imgs/nolines_minus.gif'

	};

	this.obj = objName;

	this.aNodes = [];

	this.aIndent = [];

	this.root = new Node(-1);

	this.selectedNode = null;

	this.selectedFound = false;

	this.completed = false;

};



// Adds a new node to the node array

dTree.prototype.add = function(id, pid, name, url, title, target, icon, iconOpen, open) {

	this.aNodes[this.aNodes.length] = new Node(id, pid, name, url, title, target, icon, iconOpen, open);

};



// Open/close all nodes

dTree.prototype.openAll = function() {

	this.oAll(true);

};

dTree.prototype.closeAll = function() {

	this.oAll(false);

};



// Outputs the tree to the page

dTree.prototype.toString = function() {

	var str = '<div class="dtree">\n';

	if (document.getElementById) {

		if (this.config.useCookies) this.selectedNode = this.getSelected();

		str += this.addNode(this.root);

	} else str += 'Browser not supported.';

	str += '</div>';

	if (!this.selectedFound) this.selectedNode = null;

	this.completed = true;

	return str;

};



// Creates the tree structure

dTree.prototype.addNode = function(pNode) {

	var str = '';

	var n=0;

	if (this.config.inOrder) n = pNode._ai;

	for (n; n<this.aNodes.length; n++) {

		if (this.aNodes[n].pid == pNode.id) {

			var cn = this.aNodes[n];

			cn._p = pNode;

			cn._ai = n;

			this.setCS(cn);

			if (!cn.target && this.config.target) cn.target = this.config.target;

			if (cn._hc && !cn._io && this.config.useCookies) cn._io = this.isOpen(cn.id);

			if (!this.config.folderLinks && cn._hc) cn.url = null;

			if (this.config.useSelection && cn.id == this.selectedNode && !this.selectedFound) {

					cn._is = true;

					this.selectedNode = n;

					this.selectedFound = true;

			}

			str += this.node(cn, n);

			if (cn._ls) break;

		}

	}

	return str;

};



// Creates the node icon, url and text

dTree.prototype.node = function(node, nodeId) {

	var str = '<div class="dTreeNode">' + this.indent(node, nodeId);

	if (this.config.useIcons) {

		if (!node.icon) node.icon = (this.root.id == node.pid) ? this.icon.root : ((node._hc) ? this.icon.folder : this.icon.node);

		if (!node.iconOpen) node.iconOpen = (node._hc) ? this.icon.folderOpen : this.icon.node;

		if (this.root.id == node.pid) {

			node.icon = this.icon.root;

			node.iconOpen = this.icon.root;

		}
		
		str += '<input type="checkbox" class=input_checkbox name='+ node.pid +' id='+ node.id + ' value='+node.name+' title='+ node.title + '' +' onclick="chiose(this);"/><img align=absmiddle id="i' + this.obj + nodeId + '"  src="' + ((node._io) ? node.iconOpen : node.icon) + '" alt="" />';
		

	}
	
	if (node.url) {

		str += '<a id="s' + this.obj + nodeId + '" class="' + ((this.config.useSelection) ? ((node._is ? 'nodeSel' : 'node')) : 'node') + '" href="' + node.url + '"';

		if (node.title) str += ' title="' + node.title + '"';

		if (node.target) str += ' target="' + node.target + '"';

		if (this.config.useStatusText) str += ' onmouseover="window.status=\'' + node.name + '\';return true;" onmouseout="window.status=\'\';return true;" ';

		if (this.config.useSelection && ((node._hc && this.config.folderLinks) || !node._hc))

			str += ' onclick="javascript: ' + this.obj + '.s(' + nodeId + ');"';

		str += '>';

	}

	else if ((!this.config.folderLinks || !node.url) && node._hc && node.pid != this.root.id)

		str += '<a href="javascript: ' + this.obj + '.o(' + nodeId + ');" class="node">';

	str += node.name;

	if (node.url || ((!this.config.folderLinks || !node.url) && node._hc)) str += '</a>';

	str += '</div>';

	if (node._hc) {

		str += '<div id="d' + this.obj + nodeId + '" class="clip" style="display:' + ((this.root.id == node.pid || node._io) ? 'block' : 'none') + ';">';

		str += this.addNode(node);

		str += '</div>';

	}
	
	this.aIndent.pop();

	return str;

};



// Adds the empty and line icons

dTree.prototype.indent = function(node, nodeId) {

	var str = '';

	if (this.root.id != node.pid) {

		for (var n=0; n<this.aIndent.length; n++)

			str += '<img align=absmiddle src="' + ( (this.aIndent[n] == 1 && this.config.useLines) ? this.icon.line : this.icon.empty ) + '" alt="" />';

		(node._ls) ? this.aIndent.push(0) : this.aIndent.push(1);

		if (node._hc) {

			str += '<a href="javascript: ' + this.obj + '.o(' + nodeId + ');"><img align=absmiddle id="j' + this.obj + nodeId + '" src="';

			if (!this.config.useLines) str += (node._io) ? this.icon.nlMinus : this.icon.nlPlus;

			else str += ( (node._io) ? ((node._ls && this.config.useLines) ? this.icon.minusBottom : this.icon.minus) : ((node._ls && this.config.useLines) ? this.icon.plusBottom : this.icon.plus ) );

			str += '" alt="" /></a>';

		} else str += '<img align=absmiddle src="' + ( (this.config.useLines) ? ((node._ls) ? this.icon.joinBottom : this.icon.join ) : this.icon.empty) + '" alt="" />';

	}

	return str;

};



// Checks if a node has any children and if it is the last sibling

dTree.prototype.setCS = function(node) {

	var lastId;

	for (var n=0; n<this.aNodes.length; n++) {

		if (this.aNodes[n].pid == node.id) node._hc = true;

		if (this.aNodes[n].pid == node.pid) lastId = this.aNodes[n].id;

	}

	if (lastId==node.id) node._ls = true;

};



// Returns the selected node

dTree.prototype.getSelected = function() {

	var sn = this.getCookie('cs' + this.obj);

	return (sn) ? sn : null;

};



// Highlights the selected node

dTree.prototype.s = function(id) {

	if (!this.config.useSelection) return;

	var cn = this.aNodes[id];

	if (cn._hc && !this.config.folderLinks) return;

	if (this.selectedNode != id) {

		if (this.selectedNode || this.selectedNode==0) {

			eOld = document.getElementById("s" + this.obj + this.selectedNode);

			eOld.className = "node";

		}

		eNew = document.getElementById("s" + this.obj + id);

		eNew.className = "nodeSel";

		this.selectedNode = id;

		if (this.config.useCookies) this.setCookie('cs' + this.obj, cn.id);

	}

};



// Toggle Open or close

dTree.prototype.o = function(id) {

	var cn = this.aNodes[id];

	this.nodeStatus(!cn._io, id, cn._ls);

	cn._io = !cn._io;

	if (this.config.closeSameLevel) this.closeLevel(cn);

	if (this.config.useCookies) this.updateCookie();

};



// Open or close all nodes

dTree.prototype.oAll = function(status) {

	for (var n=0; n<this.aNodes.length; n++) {

		if (this.aNodes[n]._hc && this.aNodes[n].pid != this.root.id) {

			this.nodeStatus(status, n, this.aNodes[n]._ls)

			this.aNodes[n]._io = status;

		}

	}

	if (this.config.useCookies) this.updateCookie();

};



// Opens the tree to a specific node

dTree.prototype.openTo = function(nId, bSelect, bFirst) {

	if (!bFirst) {

		for (var n=0; n<this.aNodes.length; n++) {

			if (this.aNodes[n].id == nId) {

				nId=n;

				break;

			}

		}

	}

	var cn=this.aNodes[nId];

	if (cn.pid==this.root.id || !cn._p) return;

	cn._io = true;

	cn._is = bSelect;

	if (this.completed && cn._hc) this.nodeStatus(true, cn._ai, cn._ls);

	if (this.completed && bSelect) this.s(cn._ai);

	else if (bSelect) this._sn=cn._ai;

	this.openTo(cn._p._ai, false, true);

};



// Closes all nodes on the same level as certain node

dTree.prototype.closeLevel = function(node) {

	for (var n=0; n<this.aNodes.length; n++) {

		if (this.aNodes[n].pid == node.pid && this.aNodes[n].id != node.id && this.aNodes[n]._hc) {

			this.nodeStatus(false, n, this.aNodes[n]._ls);

			this.aNodes[n]._io = false;

			this.closeAllChildren(this.aNodes[n]);

		}

	}

}



// Closes all children of a node

dTree.prototype.closeAllChildren = function(node) {

	for (var n=0; n<this.aNodes.length; n++) {

		if (this.aNodes[n].pid == node.id && this.aNodes[n]._hc) {

			if (this.aNodes[n]._io) this.nodeStatus(false, n, this.aNodes[n]._ls);

			this.aNodes[n]._io = false;

			this.closeAllChildren(this.aNodes[n]);		

		}

	}

}



// Change the status of a node(open or closed)

dTree.prototype.nodeStatus = function(status, id, bottom) {

	eDiv	= document.getElementById('d' + this.obj + id);

	eJoin	= document.getElementById('j' + this.obj + id);

	if (this.config.useIcons) {

		eIcon	= document.getElementById('i' + this.obj + id);

		eIcon.src = (status) ? this.aNodes[id].iconOpen : this.aNodes[id].icon;

	}

	eJoin.src = (this.config.useLines)?

	((status)?((bottom)?this.icon.minusBottom:this.icon.minus):((bottom)?this.icon.plusBottom:this.icon.plus)):

	((status)?this.icon.nlMinus:this.icon.nlPlus);

	eDiv.style.display = (status) ? 'block': 'none';

};





// [Cookie] Clears a cookie

dTree.prototype.clearCookie = function() {

	var now = new Date();

	var yesterday = new Date(now.getTime() - 1000 * 60 * 60 * 24);

	this.setCookie('co'+this.obj, 'cookieValue', yesterday);

	this.setCookie('cs'+this.obj, 'cookieValue', yesterday);

};



// [Cookie] Sets value in a cookie

dTree.prototype.setCookie = function(cookieName, cookieValue, expires, path, domain, secure) {

	document.cookie =

		escape(cookieName) + '=' + escape(cookieValue)

		+ (expires ? '; expires=' + expires.toGMTString() : '')

		+ (path ? '; path=' + path : '')

		+ (domain ? '; domain=' + domain : '')

		+ (secure ? '; secure' : '');

};



// [Cookie] Gets a value from a cookie

dTree.prototype.getCookie = function(cookieName) {

	var cookieValue = '';

	var posName = document.cookie.indexOf(escape(cookieName) + '=');

	if (posName != -1) {

		var posValue = posName + (escape(cookieName) + '=').length;

		var endPos = document.cookie.indexOf(';', posValue);

		if (endPos != -1) cookieValue = unescape(document.cookie.substring(posValue, endPos));

		else cookieValue = unescape(document.cookie.substring(posValue));

	}

	return (cookieValue);

};



// [Cookie] Returns ids of open nodes as a string

dTree.prototype.updateCookie = function() {

	var str = '';

	for (var n=0; n<this.aNodes.length; n++) {

		if (this.aNodes[n]._io && this.aNodes[n].pid != this.root.id) {

			if (str) str += '.';

			str += this.aNodes[n].id;

		}

	}

	this.setCookie('co' + this.obj, str);

};



// [Cookie] Checks if a node id is in a cookie

dTree.prototype.isOpen = function(id) {

	var aOpen = this.getCookie('co' + this.obj).split('.');

	for (var n=0; n<aOpen.length; n++)

		if (aOpen[n] == id) return true;

	return false;

};



// If Push and pop is not implemented by the browser

if (!Array.prototype.push) {

	Array.prototype.push = function array_push() {

		for(var i=0;i<arguments.length;i++)

			this[this.length]=arguments[i];

		return this.length;

	}

};

if (!Array.prototype.pop) {

	Array.prototype.pop = function array_pop() {

		lastElement = this[this.length-1];

		this.length = Math.max(this.length-1,0);

		return lastElement;

	}

};

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美一级精品久久| 欧美群妇大交群的观看方式| 日韩精品欧美成人高清一区二区| 欧美激情一区在线| 国产精品成人一区二区三区夜夜夜| 国产农村妇女精品| 欧美国产精品劲爆| 国产精品日韩精品欧美在线 | 一区二区视频在线| 亚洲欧美日韩中文播放| 18成人在线观看| 亚洲五月六月丁香激情| 日本中文在线一区| 国产69精品一区二区亚洲孕妇| 国产精品一区在线观看乱码| 成人午夜在线视频| 在线免费一区三区| 欧美一区二区三区日韩视频| 久久免费看少妇高潮| 国产精品视频九色porn| 亚洲在线观看免费| 日韩福利视频导航| 福利视频网站一区二区三区| 97超碰欧美中文字幕| 欧美性受xxxx| 欧美精品一区二区在线播放| 亚洲欧美在线aaa| 亚洲国产精品久久不卡毛片| 免费观看在线色综合| 国产91丝袜在线播放0| 日本道色综合久久| 精品国精品国产尤物美女| 中文字幕免费观看一区| 亚洲地区一二三色| 国产成人av资源| 欧美久久久久久久久久| 久久精品一区二区三区四区| 亚洲国产日韩av| 国产一区二区三区精品欧美日韩一区二区三区 | 久久电影网站中文字幕| 91蜜桃在线免费视频| 日韩精品一区在线| 亚洲三级视频在线观看| 麻豆91在线播放| 欧美在线看片a免费观看| 久久久久久久综合日本| 亚洲成人精品一区| 91色porny在线视频| 久久―日本道色综合久久 | 欧美一区二区在线观看| 国产精品久久久爽爽爽麻豆色哟哟| 午夜精品福利一区二区三区蜜桃| 国产91在线看| 国产欧美综合在线观看第十页| 天堂影院一区二区| 91麻豆免费看| 国产精品情趣视频| 韩国av一区二区三区四区| 欧美揉bbbbb揉bbbbb| 国产精品久久777777| 国产成人一区在线| 欧美成人一区二区三区| 午夜视频在线观看一区| 欧美亚洲一区三区| 亚洲精品国产第一综合99久久 | 久久久精品一品道一区| 日韩va欧美va亚洲va久久| 日本黄色一区二区| 亚洲精品免费看| 99re成人在线| 一区二区三区中文在线| 色综合久久久久综合体桃花网| 日韩一区有码在线| 色综合久久66| 亚洲一区二区在线视频| 一本久久a久久精品亚洲| 日韩一区在线播放| 日本高清成人免费播放| 一区二区在线免费观看| 欧美妇女性影城| 日本成人在线一区| 久久久欧美精品sm网站| 成人一区二区三区视频在线观看| 日本一区二区动态图| 成人免费av网站| 一区二区三区.www| 欧美高清dvd| 国产精品123| 亚洲色图欧洲色图婷婷| 欧美日韩黄视频| 毛片av一区二区| 国产午夜精品一区二区| 丁香婷婷深情五月亚洲| 一区二区不卡在线播放 | 亚洲永久精品大片| 欧美嫩在线观看| 精品在线免费视频| 国产精品久久久久久久第一福利 | 成人理论电影网| 一区二区三区日韩在线观看| 91麻豆精品国产| 丁香婷婷综合激情五月色| 欧美电影一区二区| 午夜影视日本亚洲欧洲精品| 日韩一区二区在线看片| 国产成人综合精品三级| 一个色综合av| 日韩欧美高清dvd碟片| 不卡视频在线观看| 午夜激情一区二区| 国产精品网曝门| 欧美一区日本一区韩国一区| 高清国产一区二区| 亚洲bt欧美bt精品| 国产精品久久毛片av大全日韩| 欧美人xxxx| 北岛玲一区二区三区四区| 日本不卡一区二区三区| 亚洲女爱视频在线| 精品国产乱码久久久久久久久| 99视频有精品| 精品一二三四在线| 日韩高清欧美激情| 一区二区在线观看av| 国产精品无人区| 欧美成人乱码一区二区三区| 欧美视频精品在线观看| 96av麻豆蜜桃一区二区| 国产精品主播直播| 麻豆一区二区三区| 亚洲午夜激情网页| 亚洲精品免费播放| 中文在线资源观看网站视频免费不卡| 欧美一区二区性放荡片| 欧美亚洲高清一区二区三区不卡| 国产不卡免费视频| 精品综合免费视频观看| 免费成人美女在线观看.| 亚洲福利一二三区| 一区二区三区在线不卡| 国产精品视频第一区| 国产丝袜在线精品| 久久男人中文字幕资源站| 精品国产三级a在线观看| 日韩欧美一卡二卡| 91麻豆精品国产自产在线| 欧美高清视频一二三区 | 日韩视频免费直播| 欧美午夜精品理论片a级按摩| 99re热视频这里只精品| 99久久精品久久久久久清纯| 99精品在线观看视频| 99re在线视频这里只有精品| 91在线一区二区| 日本电影亚洲天堂一区| 欧美日韩一区二区三区在线看| 欧美伊人久久久久久久久影院| 欧美日韩在线直播| 欧美乱妇15p| 欧美一区二区三区喷汁尤物| 欧美大片一区二区三区| www国产精品av| 中文字幕在线一区二区三区| 亚洲激情男女视频| 日韩精品成人一区二区在线| 美日韩一区二区三区| 国产99久久久国产精品免费看| 99综合电影在线视频| 欧美日韩久久一区二区| 日韩写真欧美这视频| 久久久午夜精品理论片中文字幕| 国产丝袜美腿一区二区三区| 国产精品传媒入口麻豆| 午夜欧美在线一二页| 久久99国产乱子伦精品免费| 成人免费视频一区| 欧美性生交片4| 久久综合一区二区| 亚洲欧洲日产国码二区| 日韩精品一卡二卡三卡四卡无卡 | 中文av一区二区| 亚洲综合色自拍一区| 美国十次综合导航| 不卡的看片网站| 欧美日韩二区三区| 国产亚洲欧美在线| 亚洲一区二区三区四区在线| 国产一区二区在线免费观看| 99re在线视频这里只有精品| 欧美不卡在线视频| 亚洲视频免费观看| 国产精品综合二区| 欧美在线免费视屏| 国产精品蜜臀在线观看| 天堂精品中文字幕在线| 91老司机福利 在线| 久久婷婷成人综合色| 亚洲va韩国va欧美va| av成人免费在线| 国产婷婷色一区二区三区四区 |