⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 treeex32.html

📁 用js做的树 用js做的树 用js做的树
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<meta name="KEYWORDS" content="dhtmlxtree, dhtml tree, javascript tree, javascript, DHTML, tree, tree menu, dynamical loading, xml, AJAX, API, cross-browser, checkbox, XHTML, compatible, treeview, navigation, menu, tree control, script, javascript navigation, web-site, dynamic, javascript tree menu, dhtml tree menu, dynamic tree, folder tree, item, node, asp, .net, jsp, cold fusion, custom tag, loading, widget, checkbox, drag, drop, drag and drop, component, html, scand">
<meta name="DESCRIPTION" content="Cross-browser DHTML tree menu with XML support and powerful API. This JavaScript tree menu has drag-and-drop functionality (within one tree, between trees, between frames).">

<title>DHTML JavaScirpt Tree samples - dhtmlxTree - Drag and Drop</title>

</head>
<style>
	body {font-size:12px}
	.{font-family:arial;font-size:14px}
	h1 {cursor:hand;font-size:16px;margin-left:10px;line-height:10px}
	xmp {color:green;font-size:12px;margin:0px;font-family:courier;background-color:#e6e6fa;padding:2px}
	.hdr{
		background-color:lightgrey;
		margin-bottom:10px;
		padding-left:10px;
	}
</style>
<body>
	<div class="hdr">DHTML JavaScript Tree samples</div>
	<h1>Drag and Drop</h1>
	<p>This JavaScript tree menu has extended drag-and-drop functionality 
	(within one tree, between trees, between frames). Drop-as-sibling behavior makes 
	it easy to reorder nodes in a tree view. 
You can easily edit the tree by dragging nodes within one tree or between trees or even to another object.</p>
	<link rel="STYLESHEET" type="text/css" href="../css/dhtmlXTree.css">
	<script  src="../js/dhtmlXCommon.js"></script>
	<script  src="../js/dhtmlXTree.js"></script>		

	<table>
		<tr>
			<td valign="top">

				<div id="treeboxbox_tree" style="width:250; height:218;background-color:#f5f5f5;border :1px solid Silver;; overflow:auto;"></div><br>
				<br>
				
			</td>
			<td rstyle="padding-left:25" valign="top">
			
				<div id="treeboxbox_tree2" style="width:250; height:218;background-color:#f5f5f5;border :1px solid Silver;; overflow:auto;"></div><br>
				<br>

			</td>
		</tr>

	</table>
				Drag&ampDrop works in each tree and between trees too.
	<hr>	
<XMP>
<div id="treeboxbox_tree" style="width:200;height:200"></div>
<script>
			tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);
			tree.setImagePath("../imgs/");
			
			//enable Drag&Drop
			tree.enableDragAndDrop(1);
			//set my Drag&Drop handler
			tree.setDragHandler(myDragHandler);
			tree.loadXML("tree.xml");

			function myDragHandler(idFrom,idTo){
				//if we return false then drag&drop be aborted
				return true;
			}
</script>
</XMP>	
 
	<script>
			tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);
			tree.setImagePath("../imgs/");
			tree.enableDragAndDrop(1);
			tree.loadXML("tree3.xml");

			tree2=new dhtmlXTreeObject("treeboxbox_tree2","100%","100%",0);
			tree2.setImagePath("../imgs/");
			tree2.enableDragAndDrop(1);
			tree2.loadXML("tree5.xml");

	</script>
<br><br>
<p><a href="http://www.scbr.com/docs/products/dhtmlxTree/index.shtml" style="font-weight:bold;">Go to the dhtmlxTree main page</a> or <a href="javascript:self.close()">Close this page</a></p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -