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

📄 treegridex31.html

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

<html>
<head>
	<title>Javascript Tree Grid Extension. Autoloading from XML</title>
</head>
<style>
	body {font-size:12px}
	.{font-family:arial;font-size:12px}
	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}
</style>
<body>
	<h1>Javascript Tree Grid Extension. Autoloading from XML</h1>
	<link rel="STYLESHEET" type="text/css" href="../css/dhtmlXTree.css">
	<link rel="STYLESHEET" type="text/css" href="../css/dhtmlXTreeGrid.css">	
	<script  src="../js/dhtmlXCommon.js"></script>
	<script  src="../js/dhtmlXTree.js"></script>	
	<script  src="../js/dhtmlXTree_gr.js"></script>		
	<table>
		<tr>
			<td>
				<div id="treeboxbox_tree" style="width:450; height:218;background-color:#f5f5f5;border :1px solid Silver;; "/>
			</td>
			<td rowspan="2" style="padding-left:25" valign="top">

		</div>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
	</table>
<hr>
<XMP>
<div id="treeboxbox_tree" style="width:200;height:200"></div>
<script>
			treegrid=new dhtmlXTreeGridObject("treeboxbox_tree","100%","100%","root");
			treegrid.setXMLAutoLoading("xmlgrid.php");	
			treegrid.tree.setImagePath("../imgs/");		
			treegrid.loadXML("xmlgrid.php");
</script>
</XMP>
		Parameters passed to the constructor are:
			<li>object to attach tree to (should be loaded before calling constructor)</li>
			<li>width of the tree</li>
			<li>height of the tree</li>
			<li>identifier of level parent to tree root level</li><br>
		Specify Additional parameters of the treegrid:
			<li>setImagePath(url) - method specifies the path to the folder with tree icons</li>
			<li>loadXML("tree.xml") - load tree items from XML</li>
	<script>
			treegrid2=new dhtmlXTreeGridObject("treeboxbox_tree","100%","100%","root");
			treegrid2.setXMLAutoLoading("xmlgrid.php");			
			treegrid2.tree.setImagePath("../imgs/");
			treegrid2.loadXML("xmlgrid.php");
	</script>
<br><br>

</body>
</html>

⌨️ 快捷键说明

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