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

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

?? xloadtree.js

?? 靈活強大的會員系統輕松構建互動應用
?? JS
字號:
/*----------------------------------------------------------------------------\
|                               XLoadTree 1.11                                |
|-----------------------------------------------------------------------------|
|                         Created by Erik Arvidsson                           |
|                  (http://webfx.eae.net/contact.html#erik)                   |
|                      For WebFX (http://webfx.eae.net/)                      |
|-----------------------------------------------------------------------------|
| An extension to xTree that allows sub trees to be loaded at runtime by      |
| reading XML files from the server. Works with IE5+ and Mozilla 1.0+         |
|-----------------------------------------------------------------------------|
|                   Copyright (c) 1999 - 2002 Erik Arvidsson                  |
|-----------------------------------------------------------------------------|
| This software is provided "as is", without warranty of any kind, express or |
| implied, including  but not limited  to the warranties of  merchantability, |
| fitness for a particular purpose and noninfringement. In no event shall the |
| authors or  copyright  holders be  liable for any claim,  damages or  other |
| liability, whether  in an  action of  contract, tort  or otherwise, arising |
| from,  out of  or in  connection with  the software or  the  use  or  other |
| dealings in the software.                                                   |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| This  software is  available under the  three different licenses  mentioned |
| below.  To use this software you must chose, and qualify, for one of those. |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| The WebFX Non-Commercial License          http://webfx.eae.net/license.html |
| Permits  anyone the right to use the  software in a  non-commercial context |
| free of charge.                                                             |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| The WebFX Commercial license           http://webfx.eae.net/commercial.html |
| Permits the  license holder the right to use  the software in a  commercial |
| context. Such license must be specifically obtained, however it's valid for |
| any number of  implementations of the licensed software.                    |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| GPL - The GNU General Public License    http://www.gnu.org/licenses/gpl.txt |
| Permits anyone the right to use and modify the software without limitations |
| as long as proper  credits are given  and the original  and modified source |
| code are included. Requires  that the final product, software derivate from |
| the original  source or any  software  utilizing a GPL  component, such  as |
| this, is also licensed under the GPL license.                               |
|-----------------------------------------------------------------------------|
| 2001-09-27 | Original Version Posted.                                       |
| 2002-01-19 | Added some simple error handling and string templates for      |
|            | reporting the errors.                                          |
| 2002-01-28 | Fixed loading issues in IE50 and IE55 that made the tree load  |
|            | twice.                                                         |
| 2002-10-10 | (1.1) Added reload method that reloads the XML file from the   |
|            | server.                                                        |
/ 2003-05-06 | Added support for target attribute                             |
|-----------------------------------------------------------------------------|
| Dependencies: xtree.js - original xtree library                             |
|               xtree.css - simple css styling of xtree                       |
|               xmlextras.js - provides xml http objects and xml document     |
|                              objects                                        |
|-----------------------------------------------------------------------------|
| Created 2001-09-27 | All changes are in the log above. | Updated 2003-05-06 |
\----------------------------------------------------------------------------*/


webFXTreeConfig.loadingText = "Loading...";
webFXTreeConfig.loadErrorTextTemplate = "Error loading \"%1%\"";
webFXTreeConfig.emptyErrorTextTemplate = "Error \"%1%\" does not contain any tree items";

/*
 * WebFXLoadTree class
 */

function WebFXLoadTree(sText, sXmlSrc, sAction, sBehavior, sIcon, sOpenIcon) {
	// call super
	this.WebFXTree = WebFXTree;
	this.WebFXTree(sText, sAction, sBehavior, sIcon, sOpenIcon);

	// setup default property values
	this.src = sXmlSrc;
	this.loading = false;
	this.loaded = false;
	this.errorText = "";

	// check start state and load if open
	if (this.open)
		_startLoadXmlTree(this.src, this);
	else {
		// and create loading item if not
		this._loadingItem = new WebFXTreeItem(webFXTreeConfig.loadingText);
		this.add(this._loadingItem);
	}
}

WebFXLoadTree.prototype = new WebFXTree;

// override the expand method to load the xml file
WebFXLoadTree.prototype._webfxtree_expand = WebFXTree.prototype.expand;
WebFXLoadTree.prototype.expand = function() {
	if (!this.loaded && !this.loading) {
		// load
		_startLoadXmlTree(this.src, this);
	}
	this._webfxtree_expand();
};

/*
 * WebFXLoadTreeItem class
 */

function WebFXLoadTreeItem(sText, sXmlSrc, sAction, sTarget, sCId, sChecked, eParent, sIcon, sOpenIcon) {
	// call super
	this.WebFXTreeItem = WebFXTreeItem;
	this.WebFXTreeItem(sText, sAction, eParent, sIcon, sOpenIcon);

	// setup default property values
	this.src = sXmlSrc;
	this.target =  sTarget;
	this.loading = false;
	this.loaded = false;
	this.errorText = "";
	this.cId = sCId;

	if (sChecked) { this.checked = sChecked.split('-');}
	// check start state and load if open
	if (this.open)
		_startLoadXmlTree(this.src, this);
	else {
		// and create loading item if not
		this._loadingItem = new WebFXTreeItem(webFXTreeConfig.loadingText);
		this.add(this._loadingItem);
	}
}

WebFXLoadTreeItem.prototype = new WebFXTreeItem;

// override the expand method to load the xml file
WebFXLoadTreeItem.prototype._webfxtreeitem_expand = WebFXTreeItem.prototype.expand;
WebFXLoadTreeItem.prototype.expand = function() {
	if (!this.loaded && !this.loading) {
		// load
		_startLoadXmlTree(this.src, this);
	}
	this._webfxtreeitem_expand();
};

// reloads the src file if already loaded
WebFXLoadTree.prototype.reload =
WebFXLoadTreeItem.prototype.reload = function () {
	// if loading do nothing
	if (this.loaded) {
		var open = this.open;
		// remove
		while (this.childNodes.length > 0)
			this.childNodes[this.childNodes.length - 1].remove();

		this.loaded = false;

		this._loadingItem = new WebFXTreeItem(webFXTreeConfig.loadingText);
		this.add(this._loadingItem);

		if (open)
			this.expand();
	}
	else if (this.open && !this.loading)
		_startLoadXmlTree(this.src, this);
};

/*
 * Helper functions
 */

// creates the xmlhttp object and starts the load of the xml document
function _startLoadXmlTree(sSrc, jsNode) {
	if (jsNode.loading || jsNode.loaded)
		return;
	jsNode.loading = true;
	var xmlHttp = XmlHttp.create();
	xmlHttp.open("GET", sSrc, true);	// async
	xmlHttp.onreadystatechange = function () {
		if (xmlHttp.readyState == 4) {
			_xmlFileLoaded(xmlHttp.responseXML, jsNode);
		}
	};
	// call in new thread to allow ui to update
	window.setTimeout(function () {
		xmlHttp.send(null);
	}, 10);
}


// Converts an xml tree to a js tree. See article about xml tree format
function _xmlTreeToJsTree(oNode) {
	// retreive attributes
	var text = oNode.getAttribute("text");
	var action = oNode.getAttribute("action");
	var parent = null;
	var icon = oNode.getAttribute("icon");
	var openIcon = oNode.getAttribute("openIcon");
	var src = oNode.getAttribute("src");
	var target = oNode.getAttribute("target");
	var cId = oNode.getAttribute("cId");
	var checked = oNode.getAttribute("checked");
	// create jsNode
	var jsNode;
//sText, sXmlSrc, sAction, sTarget, sCId, eParent, sIcon, sOpenIcon

if (src != null && src != "")
		jsNode = new WebFXLoadTreeItem(text, src, action, parent, icon, openIcon);
	else
		jsNode = new WebFXTreeItem(text, action,  parent, icon, openIcon);
//sText, sAction, sTarget, sCId, eParent,
	if (target != "")
		jsNode.target = target;
//xml加載的數據解析
	jsNode.cId = cId;
	if (checked) { 
		jsNode.checked = checked.split('-');
	} else {
		jsNode.checked = new Array('','','','','','','','');
	}
//alert(checked)
	//jsNode.checked = checked;
	// go through childNOdes
	var cs = oNode.childNodes;
	var l = cs.length;
	for (var i = 0; i < l; i++) {
		if (cs[i].tagName == "tree")
			jsNode.add( _xmlTreeToJsTree(cs[i]), true );
	}

	return jsNode;
}

// Inserts an xml document as a subtree to the provided node
function _xmlFileLoaded(oXmlDoc, jsParentNode) {
	if (jsParentNode.loaded)
		return;

	var bIndent = false;
	var bAnyChildren = false;
	jsParentNode.loaded = true;
	jsParentNode.loading = false;

	// check that the load of the xml file went well
	if( oXmlDoc == null || oXmlDoc.documentElement == null) {
		alert(oXmlDoc.xml);
		jsParentNode.errorText = parseTemplateString(webFXTreeConfig.loadErrorTextTemplate,
							jsParentNode.src);
	}
	else {
		// there is one extra level of tree elements
		var root = oXmlDoc.documentElement;

		// loop through all tree children
		var cs = root.childNodes;
		var l = cs.length;
		for (var i = 0; i < l; i++) {
			if (cs[i].tagName == "tree") {
				bAnyChildren = true;
				bIndent = true;
				jsParentNode.add( _xmlTreeToJsTree(cs[i]), true);
			}
		}

		// if no children we got an error
		if (!bAnyChildren)
			jsParentNode.errorText = parseTemplateString(webFXTreeConfig.emptyErrorTextTemplate,
										jsParentNode.src);
	}

	// remove dummy
	if (jsParentNode._loadingItem != null) {
		jsParentNode._loadingItem.remove();
		bIndent = true;
	}

	if (bIndent) {
		// indent now that all items are added
		jsParentNode.indent();
	}

	// show error in status bar
	if (jsParentNode.errorText != "")
		window.status = jsParentNode.errorText;
}

// parses a string and replaces %n% with argument nr n
function parseTemplateString(sTemplate) {
	var args = arguments;
	var s = sTemplate;

	s = s.replace(/\%\%/g, "%");

	for (var i = 1; i < args.length; i++)
		s = s.replace( new RegExp("\%" + i + "\%", "g"), args[i] )

	return s;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人1区2区| 日韩午夜av一区| 91精品国产色综合久久不卡电影| 中文字幕精品—区二区四季| 麻豆久久一区二区| 欧美日韩国产bt| 亚洲午夜一区二区| 欧美影视一区二区三区| 亚洲视频免费看| heyzo一本久久综合| 久久久www成人免费无遮挡大片| 欧美aaaaaa午夜精品| 51精品秘密在线观看| 亚洲小说欧美激情另类| 欧美偷拍一区二区| 一区二区在线观看视频| 色呦呦国产精品| 自拍偷拍欧美精品| 色国产综合视频| 一区二区三区四区高清精品免费观看| www.久久久久久久久| 一区免费观看视频| 色婷婷综合久久久中文字幕| 亚洲精品国产精品乱码不99 | 91精品中文字幕一区二区三区| 有码一区二区三区| 欧美日韩国产高清一区二区 | 欧美国产日韩一二三区| 国产a久久麻豆| 自拍偷拍亚洲激情| 9191国产精品| 免费高清视频精品| 日本一区二区三区国色天香 | 中文字幕亚洲一区二区va在线| 99久久婷婷国产| 一区二区三区在线免费| 3atv一区二区三区| 日韩av不卡在线观看| 日韩一区二区免费在线电影| 蜜桃av噜噜一区二区三区小说| 日韩欧美国产小视频| 国产91综合一区在线观看| 国产精品成人一区二区三区夜夜夜| 天天影视色香欲综合网老头| 日韩手机在线导航| 色婷婷久久99综合精品jk白丝| 久久99精品国产| 亚洲一区二区三区视频在线播放| 中文字幕第一区综合| 日韩免费看网站| 欧美日韩在线三区| 色一情一乱一乱一91av| 粉嫩一区二区三区性色av| 亚洲不卡av一区二区三区| 国产精品免费视频网站| 欧美va亚洲va国产综合| 欧美日韩精品一区二区在线播放| 国产成人免费视频一区| 久久99国内精品| 青青草视频一区| 亚洲一二三区不卡| 亚洲曰韩产成在线| 亚洲精选在线视频| 1区2区3区欧美| 国产精品久久久久永久免费观看 | 欧洲在线/亚洲| 91视视频在线观看入口直接观看www | 日韩精品国产精品| 一区二区久久久| 中文字幕在线不卡| 亚洲国产精品99久久久久久久久| wwwwww.欧美系列| 日韩欧美色综合网站| 日韩免费高清电影| 日韩午夜在线观看视频| 欧美美女一区二区三区| 欧美视频一区在线| 欧美老肥妇做.爰bbww| 欧美裸体一区二区三区| 538在线一区二区精品国产| 欧美一区二视频| 日韩欧美二区三区| 精品对白一区国产伦| wwww国产精品欧美| 国产精品美女久久久久久久久久久 | 在线观看91视频| 欧美三级资源在线| 欧美巨大另类极品videosbest | 欧洲视频一区二区| 欧美怡红院视频| 欧美日韩精品免费| 欧美v日韩v国产v| 久久影院视频免费| 中文字幕在线不卡一区| 亚洲最大色网站| 首页欧美精品中文字幕| 激情综合色综合久久| 国产传媒久久文化传媒| 成人激情午夜影院| 一本色道a无线码一区v| 欧美日韩精品是欧美日韩精品| 欧美二区乱c少妇| 精品精品欲导航| 欧美激情在线一区二区三区| 亚洲欧洲99久久| 日日欢夜夜爽一区| 国产成人免费在线| 在线观看欧美黄色| 精品国产一区二区三区久久影院| 国产精品素人一区二区| 一区av在线播放| 黄色日韩网站视频| 欧洲生活片亚洲生活在线观看| 欧美一区二区精美| 国产精品美女久久久久久久久久久| 一区二区三区四区不卡在线| 蜜桃视频一区二区三区| 波多野结衣精品在线| 欧美巨大另类极品videosbest | 婷婷久久综合九色综合伊人色| 国产一区高清在线| 在线观看免费成人| 久久久亚洲高清| 香蕉成人伊视频在线观看| 国产美女视频一区| 欧美视频一区二区三区在线观看| 亚洲精品一区二区三区蜜桃下载 | 91在线视频官网| 日韩一级片在线观看| 亚洲视频每日更新| 激情五月播播久久久精品| 99这里都是精品| 日韩视频不卡中文| 亚洲精品免费看| 粉嫩高潮美女一区二区三区| 欧美女孩性生活视频| 亚洲欧洲一区二区在线播放| 日本sm残虐另类| 在线免费观看日韩欧美| 国产亚洲精品超碰| 精品一区精品二区高清| 在线视频你懂得一区二区三区| 久久精品免费在线观看| 日韩精品国产精品| 欧美三级电影在线看| 亚洲日本中文字幕区| 国产精品一级黄| 日韩免费观看高清完整版在线观看| 一卡二卡欧美日韩| 一本一本久久a久久精品综合麻豆| 久久久欧美精品sm网站| 精品一区二区精品| 制服丝袜在线91| 亚洲成人久久影院| 在线观看视频欧美| 亚洲自拍偷拍麻豆| 91免费看`日韩一区二区| 欧美激情一区不卡| 国产成人免费在线| 国产欧美一区二区三区在线老狼 | 亚洲国产成人高清精品| 一本大道久久a久久综合| 欧美国产精品一区| 国产成人精品在线看| 久久精品一区二区三区四区| 国产在线播放一区三区四| 日韩精品在线看片z| 三级久久三级久久久| 制服丝袜在线91| 免费看日韩精品| 精品国产sm最大网站免费看| 久久精品国产网站| 精品国产第一区二区三区观看体验| 麻豆精品新av中文字幕| 精品福利视频一区二区三区| 狠狠色丁香婷婷综合久久片| 精品av综合导航| 粉嫩欧美一区二区三区高清影视| 国产女主播一区| 99久久伊人久久99| 一区二区三区在线视频观看| 欧美性大战久久久久久久蜜臀| 亚洲第一成年网| 日韩视频免费观看高清完整版在线观看 | 加勒比av一区二区| 国产女人18毛片水真多成人如厕| 国产成人综合在线播放| 国产精品久久久久久久午夜片 | 欧美伊人久久大香线蕉综合69| 亚洲国产日韩精品| 5月丁香婷婷综合| 经典三级视频一区| 亚洲欧美在线视频| 欧美少妇xxx| 精品伊人久久久久7777人| 中文一区在线播放| 欧美专区日韩专区| 激情欧美一区二区| 亚洲另类中文字| 精品久久人人做人人爱|