引入树操作JavaScript脚本文件
<chinahtml file="help/tree/act.htm"/><!-- 引入树操作文件 -->
图片路径及节点编号首字符
<bag id=pPage><we name=imgPath>help/tree</we><we name=id>e</we></bag>
引入xml文件并显示树形菜单
<xmlTree id="@{pPage:id}" url="javascript:alert" imgPath="@{pPage:imgPath}" p="HtokID">_samples/test.xml</xmlTree>
效果
完整代码
<html>
<head>
<title>XML树</title>
<chinahtml file="help/tree/act.htm"/><!-- 引入树操作文件 -->
<style>div{padding-left:0px;padding-top:0px;cursor:normal;font-size:12px}</style>
</head>
<body οnlοad="onStart();">
<table border=0 style="overflow:scroll" cellspacing=0 cellpadding=0>
<tr><td height=8></td></tr>
<tr><td>
<chtml>
<bag id=pPage><we name=imgPath>help/tree</we><we name=id>e</we></bag>
<xmlTree id="e" url="javascript:alert" imgPath="@{pPage:imgPath}" p="HtokID">_samples/test.xml</xmlTree>
</chtml>
</td></tr></table>
</body>
</html>
(例子文件:_samples/tree.html)在
轻开平台
的
_samples
目录下
酷吧!
轻松互联网开发平台(Easy Do IT)资源下载
平台及最新开发手册免费下载:http://download.csdn.net/detail/tx18/8464425
开发实例:轻开B2C电子商务网站,免费下载:http://download.csdn.net/detail/tx18/8318585
轻开平台会不定期升级为大家提供更多强大而Easy的功能,请留意下载最新的版本