亚洲欧美第一页_禁久久精品乱码_粉嫩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, eParent, sIcon, sOpenIcon) {
	// call super
	this.WebFXTreeItem = WebFXTreeItem;
	this.WebFXTreeItem(sText, sAction, eParent, sIcon, sOpenIcon);

	// setup default property values
	this.src = sXmlSrc + '&refresh='+Math.random();
	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(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区3区在线观看| 午夜视频久久久久久| 国产一区二区在线观看免费| 成人免费视频国产在线观看| 4438x成人网最大色成网站| 欧美激情中文不卡| av亚洲精华国产精华| 日韩欧美精品三级| 亚洲国产裸拍裸体视频在线观看乱了 | 亚洲欧美日韩系列| 国产精品1区2区| 日韩欧美卡一卡二| 天涯成人国产亚洲精品一区av| www.亚洲国产| 国产网红主播福利一区二区| 美美哒免费高清在线观看视频一区二区 | 一个色在线综合| av成人动漫在线观看| 26uuu成人网一区二区三区| 天天做天天摸天天爽国产一区 | 蜜臀精品久久久久久蜜臀| 日本精品视频一区二区三区| 欧美极品另类videosde| 国产很黄免费观看久久| 精品伦理精品一区| 久久精品国产**网站演员| 欧美亚洲禁片免费| 亚洲国产精品欧美一二99| av不卡免费在线观看| 国产精品久久久一本精品| 成人看片黄a免费看在线| 欧美激情一区二区三区在线| 国产精品一区二区在线观看不卡| 精品成人私密视频| 国产精品一卡二| 中文字幕成人网| 成人97人人超碰人人99| 亚洲人成网站在线| 一道本成人在线| 成人综合婷婷国产精品久久蜜臀 | 夜夜亚洲天天久久| 欧美三级电影精品| 日韩国产高清影视| 欧美大片免费久久精品三p| 久久国产精品色| 国产丝袜在线精品| 91麻豆.com| 亚洲另类在线一区| 91麻豆精品国产91久久久资源速度 | 免费观看在线综合色| 精品少妇一区二区三区| 国产精品一区二区久久精品爱涩 | 一区二区三区四区激情| 欧美日韩国产高清一区| 蜜桃视频免费观看一区| 久久久美女毛片| 99riav久久精品riav| 亚洲动漫第一页| 久久美女高清视频| 在线视频一区二区免费| 美女诱惑一区二区| 中文字幕成人av| 欧美日韩精品一区二区三区四区| 久久99精品国产麻豆不卡| 欧美激情中文字幕一区二区| 在线观看国产精品网站| 91黄视频在线| 免费在线看成人av| 中文欧美字幕免费| 欧美一区二区三区在线电影| 成人午夜免费电影| 午夜精品久久久久久不卡8050| 久久综合狠狠综合久久综合88| av成人动漫在线观看| 美女一区二区在线观看| 亚洲精品高清视频在线观看| 久久伊人蜜桃av一区二区| 在线视频观看一区| 福利电影一区二区| 美女网站视频久久| 一区二区三区加勒比av| 久久久久久久久岛国免费| 欧美日韩综合色| av爱爱亚洲一区| 国产精品一区二区91| 午夜欧美大尺度福利影院在线看| 中文字幕精品一区二区三区精品| 精品视频在线免费看| av亚洲精华国产精华精华| 国产在线精品一区二区| 亚洲国产裸拍裸体视频在线观看乱了| 国产蜜臀97一区二区三区| 日韩一区二区三区精品视频| 91福利国产精品| a在线欧美一区| 国产风韵犹存在线视精品| 日本视频在线一区| 亚洲成人免费看| 久久69国产一区二区蜜臀| 一区二区三区在线观看国产| 亚洲国产高清aⅴ视频| 精品日韩成人av| 欧美一区二区三区免费大片| 欧美日韩久久一区| 欧美日韩一级视频| 欧美偷拍一区二区| 欧美日韩在线免费视频| 欧洲另类一二三四区| 欧美亚一区二区| 欧美色图一区二区三区| 欧美三级韩国三级日本三斤| 欧美视频在线不卡| 欧美日韩国产区一| 欧美日本免费一区二区三区| 欧美老肥妇做.爰bbww视频| 欧美日韩一区成人| 欧美一区二区三区成人| 日韩一区二区免费视频| 精品日韩在线一区| 久久精品一区二区| 亚洲欧洲av色图| 亚洲精品高清视频在线观看| 亚洲成人久久影院| 秋霞av亚洲一区二区三| 国产一区二区三区av电影| 国产91富婆露脸刺激对白 | 久久精品国产99| 国产精品小仙女| 成人三级伦理片| 91九色最新地址| 日韩精品一区二区三区蜜臀 | 欧美日韩国产首页| 日韩免费一区二区| 欧美经典三级视频一区二区三区| 国产精品久久久久久久久晋中 | 国产午夜精品美女毛片视频| 国产午夜精品美女毛片视频| 亚洲图片另类小说| 男男视频亚洲欧美| 国产99久久久精品| 欧美系列日韩一区| 欧美tickling网站挠脚心| 中文字幕av一区二区三区高 | 久久久久国产精品麻豆| 中文字幕在线免费不卡| 爽好久久久欧美精品| 国产综合久久久久久鬼色| 波多野结衣亚洲| 5858s免费视频成人| 欧美激情一区二区三区蜜桃视频| 亚洲小少妇裸体bbw| 欧美性猛交xxxx乱大交退制版 | 欧美色图一区二区三区| 日韩精品一区二区三区蜜臀| 亚洲欧美在线高清| 美腿丝袜在线亚洲一区| 91浏览器在线视频| 久久综合色播五月| 日韩精品亚洲专区| av激情综合网| xvideos.蜜桃一区二区| 亚洲自拍欧美精品| 成人毛片视频在线观看| 日韩一区和二区| 亚洲精选视频免费看| 国产91精品入口| 日韩免费观看高清完整版在线观看| 亚洲色图制服诱惑 | 秋霞av亚洲一区二区三| 91视视频在线观看入口直接观看www | 国产成人av福利| 欧美一级二级在线观看| 亚洲精品高清在线| 成人免费视频播放| 欧美大片在线观看一区二区| 亚洲一区在线观看视频| 波多野结衣亚洲一区| 国产亚洲一区二区三区在线观看 | 国产色爱av资源综合区| 日本人妖一区二区| 欧美视频在线播放| 一区二区三区成人| av亚洲精华国产精华精| 国产三级欧美三级| 国产精品一线二线三线精华| 欧美一区二区三区影视| 婷婷激情综合网| 在线观看av不卡| 亚洲午夜在线电影| 在线亚洲一区二区| 亚洲另类在线一区| 色婷婷综合激情| 一区二区三区四区在线免费观看| 成人av小说网| 中文字幕一区日韩精品欧美| heyzo一本久久综合| 国产精品成人一区二区艾草 | 免费观看在线综合| 欧美一级高清大全免费观看|