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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? xloadtree.js

?? js 異步加載 tree 采用ajax技術(shù)
?? 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 = "裝載中...";
webFXTreeConfig.loadErrorTextTemplate = "裝載 \"%1%\" 失敗";
webFXTreeConfig.emptyErrorTextTemplate = "錯誤: \"%1%\" 不包含子節(jié)點(diǎn)";

/*
 * 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, eParent, sIcon, sOpenIcon) {
	// call super
	this.WebFXTreeItem = WebFXTreeItem;
	this.WebFXTreeItem(sText, sAction, eParent, 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);
	}
}

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");
	// create jsNode
	var jsNode;
	if (src != null && src != "")
		jsNode = new WebFXLoadTreeItem(text, src, action, parent, icon, openIcon);
	else
		jsNode = new WebFXTreeItem(text, action, parent, icon, openIcon);

	if (target != "")
		jsNode.target = target;

	// 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("裝載失敗!");
		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;
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品视频麻豆| 亚洲国产日韩综合久久精品| 国产精品成人免费| 亚洲一区二区不卡免费| 国产麻豆91精品| 欧美日精品一区视频| 日本一区二区免费在线观看视频| 亚洲国产va精品久久久不卡综合| 成人性色生活片| 日韩欧美色电影| 午夜欧美视频在线观看| 91在线国产福利| 国产丝袜美腿一区二区三区| 免费看精品久久片| 欧美精品久久天天躁| 亚洲欧美在线观看| 国产 日韩 欧美大片| 亚洲精品一区二区三区精华液| 亚洲成a人片综合在线| 99久久伊人网影院| 国产精品成人在线观看| 成人网在线播放| 国产欧美一区二区三区在线老狼| 久久精品国产99国产精品| 欧美一区二区三区在线| 日韩精品高清不卡| 欧美日韩国产高清一区二区| 亚洲小少妇裸体bbw| 日本福利一区二区| 亚洲自拍与偷拍| 91久久线看在观草草青青| 亚洲欧洲www| 色综合中文字幕国产 | av午夜一区麻豆| 国产欧美va欧美不卡在线| 国产一区二区久久| 久久久精品日韩欧美| 韩国在线一区二区| 久久久久久久久久久久久久久99| 国产真实乱子伦精品视频| www国产成人免费观看视频 深夜成人网| 蜜臀91精品一区二区三区 | bt欧美亚洲午夜电影天堂| 国产精品污网站| 99视频精品全部免费在线| 一区二区三区欧美亚洲| 欧美日韩中字一区| 美女视频黄 久久| 久久综合色一综合色88| 丁香五精品蜜臀久久久久99网站| 国产精品美女一区二区三区| 一本色道久久综合亚洲aⅴ蜜桃| 中文字幕+乱码+中文字幕一区| 成人激情动漫在线观看| 一区二区久久久久久| 欧美人与禽zozo性伦| 国产真实乱对白精彩久久| 中文字幕亚洲电影| 欧美日韩国产一级片| 韩国v欧美v亚洲v日本v| 国产精品久久夜| 91精品国产手机| 国产成人综合精品三级| 一区二区免费在线| 精品国产a毛片| 色屁屁一区二区| 精品一区二区三区影院在线午夜 | 日韩一区二区三区观看| 国产成人av福利| 亚洲国产成人91porn| 久久久777精品电影网影网| 91浏览器在线视频| 精品一区二区免费视频| 亚洲精品中文在线观看| 亚洲精品在线免费观看视频| 91一区二区三区在线观看| 奇米精品一区二区三区在线观看| 国产精品免费视频观看| 日韩免费电影一区| 色久综合一二码| 国产一区二区女| 亚洲h在线观看| ...av二区三区久久精品| 日韩一区二区三区av| 色视频一区二区| 高清久久久久久| 捆绑紧缚一区二区三区视频 | 亚洲免费观看高清在线观看| 日韩免费成人网| 欧美人妖巨大在线| 一本大道久久a久久综合| 国产福利精品导航| 蜜臂av日日欢夜夜爽一区| 一级日本不卡的影视| 国产精品网曝门| 久久这里只有精品视频网| 欧美日本视频在线| 欧美午夜不卡在线观看免费| 成人中文字幕在线| 国产成人自拍在线| 国产又黄又大久久| 韩国女主播一区| 人人狠狠综合久久亚洲| 午夜精品久久久久久久| 一区二区三区四区国产精品| 国产精品色呦呦| 久久美女高清视频 | 欧美老肥妇做.爰bbww| 91亚洲大成网污www| 成人av资源网站| 成人h动漫精品一区二区| 国产高清在线观看免费不卡| 国产综合色视频| 国产精品亚洲视频| 国产91精品露脸国语对白| 国产综合色视频| 国产xxx精品视频大全| 国产乱子轮精品视频| 国产盗摄一区二区三区| 国产一区二区三区在线观看精品| 精品制服美女久久| 精品一区二区三区av| 国产成人综合在线| 99久久精品国产麻豆演员表| av中文字幕不卡| 在线国产电影不卡| 9191久久久久久久久久久| 精品综合免费视频观看| 亚洲色图欧洲色图| 日日夜夜精品视频免费| 麻豆精品在线视频| 91玉足脚交白嫩脚丫在线播放| 欧美中文字幕一区二区三区亚洲| 欧美吻胸吃奶大尺度电影| 色噜噜偷拍精品综合在线| 国产真实乱偷精品视频免| 久久久久一区二区三区四区| 久久99国产精品麻豆| 国产精品情趣视频| 一本大道久久a久久精品综合| 国产精品久久久久久久久图文区| 成人动漫在线一区| 视频精品一区二区| 国产日韩精品视频一区| 不卡的av网站| 毛片不卡一区二区| 欧美激情综合五月色丁香小说| 91在线视频播放地址| 日韩精品五月天| 国产精品国产三级国产有无不卡| 在线看不卡av| 豆国产96在线|亚洲| 日本不卡的三区四区五区| 亚洲欧洲99久久| 久久久久久夜精品精品免费| 欧美久久一二区| 9人人澡人人爽人人精品| 九九热在线视频观看这里只有精品| 国产精品夫妻自拍| 久久久久久久久久久黄色| 欧美精品一二三四| 欧美私人免费视频| 91天堂素人约啪| 国产91精品精华液一区二区三区| 天天综合网 天天综合色| 亚洲裸体xxx| 国产欧美日韩视频在线观看| 亚洲一区二区在线观看视频| 91精品国产品国语在线不卡| 成人黄色在线网站| 国产精品99久久久久久似苏梦涵| 亚洲午夜电影在线| 亚洲精品福利视频网站| 国产欧美精品区一区二区三区| 日韩午夜在线观看| 欧美人伦禁忌dvd放荡欲情| 91黄色免费看| 91麻豆精品国产91久久久使用方法| 丁香天五香天堂综合| 不卡的av在线播放| 91精彩视频在线观看| 99r国产精品| 欧美三级韩国三级日本一级| 欧美二区三区的天堂| 91国在线观看| 精品成人在线观看| 亚洲欧洲三级电影| 一区二区三区精品在线观看| 午夜久久久影院| 国产成人精品影院| 不卡高清视频专区| 6080日韩午夜伦伦午夜伦| 国产丝袜在线精品| 亚洲美女在线一区| 精久久久久久久久久久| av中文字幕亚洲| 欧美精品123区| 亚洲欧洲av另类| 国产精品一区二区免费不卡| 日本乱人伦一区|