请问怎样做多级树形菜单啊(大概要有五层)?可否给提供一两个摸板?谢谢 http://community.csdn.net/Expert/topic/3274/3274531.xml?temp=.2045557 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 非常感谢,怎样才能给别人分数高啊?我是菜鸟,才开始上csdn,不好意思 您的这个网页,资源为什么弄不下来啊?http://community.csdn.net/Expert/topic/3274/3274531.xml?temp=.2045557 可以下的,里面五个资源都可以顺利下载,这是其中的两棵树增删节点的树:http://webfx.eae.net/dhtml/xtree/index.html多次加载的树:http://webfx.eae.net/dhtml/xloadtree/xloadtree.html http://eyun.iecn.net/tmp/eyuntree/img/shrink.gifhttp://eyun.iecn.net/tmp/eyuntree/img/unwrap.gifhttp://eyun.iecn.net/tmp/eyuntree/img/leaf.gif 狐狸的研究成果三个文件,自己看着分别存。xml,xsl,htm<?xml version="1.0" encoding="GB2312" ?><?xml-stylesheet type="text/xsl" href="tree.xsl" ?><tree> <node title="中国"> <node title="江苏"> <node title="泰州"> <node title="白马" /> </node> <node title="徐州" /> <node title="南京" /> <node title="无锡" /> </node> <node title="上海"> <node title="徐家汇" /> <node title="莘庄" /> <node title="中山公园" /> </node> <node title="北京" /> <node title="四川" /> <node title="海南" /> </node> <node title="米国"> <node title="加利福利亚" /> <node title="纽约" /> </node> <node title="伊拉克" /> </tree><?xml version="1.0" encoding="GB2312" ?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="node"> <div> <span onclick="toggle(this)" class=""> <xsl:choose> <xsl:when test="count(*)>0"> ─</xsl:when> <xsl:otherwise> ·</xsl:otherwise> </xsl:choose> </span> <span> <xsl:value-of select="@title" /> </span> </div> <div class="indent"> <xsl:apply-templates select="./node" /> </div> </xsl:template></xsl:stylesheet><style>body{ background-color: #eeeeee; font-size:14;}div{ cursor:hand; }div.indent{ padding-left: 30;}span{ border:1px solid; border-color:#999999; font-size:14; height:18;}span.{ width:15; height:15; text-align:center; border:1px solid; border-color:#999999; font-size:10; background-color:white; }</style><SCRIPT > function toggle(s){ var d = s.parentElement.nextSibling; if (d.childNodes.length > 0) { if (d.style.display == '') { d.style.display = 'none'; s.innerText = '┼'; } else { d.style.display = ''; s.innerText = '─'; } }}function document.onselectstart(){ document.selection.clear();}var xmldoc, xsldoc;xmldoc = new ActiveXObject("Microsoft.XMLDOM");xmldoc.async = false;xmldoc.load("tree.xml");xsldoc = new ActiveXObject("Microsoft.XMLDOM");xmldoc.async = false;xsldoc.load("tree.xsl");document.write('<div id="tree">' + xmldoc.transformNode(xsldoc) + '</div>'); </SCRIPT> 狐狸的研究成果三个文件,自己看着分别存。xml,xsl,htm<?xml version="1.0" encoding="GB2312" ?><?xml-stylesheet type="text/xsl" href="tree.xsl" ?><tree> <node title="中国"> <node title="江苏"> <node title="泰州"> <node title="白马" /> </node> <node title="徐州" /> <node title="南京" /> <node title="无锡" /> </node> <node title="上海"> <node title="徐家汇" /> <node title="莘庄" /> <node title="中山公园" /> </node> <node title="北京" /> <node title="四川" /> <node title="海南" /> </node> <node title="米国"> <node title="加利福利亚" /> <node title="纽约" /> </node> <node title="伊拉克" /> </tree><?xml version="1.0" encoding="GB2312" ?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="node"> <div> <span onclick="toggle(this)" class=""> <xsl:choose> <xsl:when test="count(*)>0"> ─</xsl:when> <xsl:otherwise> ·</xsl:otherwise> </xsl:choose> </span> <span> <xsl:value-of select="@title" /> </span> </div> <div class="indent"> <xsl:apply-templates select="./node" /> </div> </xsl:template></xsl:stylesheet><style>body{ background-color: #eeeeee; font-size:14;}div{ cursor:hand; }div.indent{ padding-left: 30;}span{ border:1px solid; border-color:#999999; font-size:14; height:18;}span.{ width:15; height:15; text-align:center; border:1px solid; border-color:#999999; font-size:10; background-color:white; }</style><SCRIPT > function toggle(s){ var d = s.parentElement.nextSibling; if (d.childNodes.length > 0) { if (d.style.display == '') { d.style.display = 'none'; s.innerText = '┼'; } else { d.style.display = ''; s.innerText = '─'; } }}function document.onselectstart(){ document.selection.clear();}var xmldoc, xsldoc;xmldoc = new ActiveXObject("Microsoft.XMLDOM");xmldoc.async = false;xmldoc.load("tree.xml");xsldoc = new ActiveXObject("Microsoft.XMLDOM");xmldoc.async = false;xsldoc.load("tree.xsl");document.write('<div id="tree">' + xmldoc.transformNode(xsldoc) + '</div>'); </SCRIPT> JQ如何通过input的this找到span标签,详细请点击。在线等~ 用jsquey怎么取得 该值? Image 的 dynsrc属性 IE提示"网页上有错误" 怎么办??急在线等啊!!! PHP怎么引入包含文件 html调用asp 共享-----完美的多附件上传效果。 我這段代碼為什么沒用呢? 急,急,急!如何做一个循环让程序延迟3秒执行? 如何取子串! ★★有点难★★如何在我的frame页面即将跳转之前弹出一个窗口询问是否离开呢? jsp中怎么不能嵌入htc?
http://eyun.iecn.net/tmp/eyuntree/img/unwrap.gif
http://eyun.iecn.net/tmp/eyuntree/img/leaf.gif
<?xml-stylesheet type="text/xsl" href="tree.xsl" ?>
<tree>
<node title="中国">
<node title="江苏">
<node title="泰州">
<node title="白马" />
</node>
<node title="徐州" />
<node title="南京" />
<node title="无锡" />
</node>
<node title="上海">
<node title="徐家汇" />
<node title="莘庄" />
<node title="中山公园" />
</node>
<node title="北京" />
<node title="四川" />
<node title="海南" />
</node>
<node title="米国">
<node title="加利福利亚" />
<node title="纽约" />
</node>
<node title="伊拉克" />
</tree>
<?xml version="1.0" encoding="GB2312" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="node">
<div>
<span onclick="toggle(this)" class="">
<xsl:choose>
<xsl:when test="count(*)>0">
─</xsl:when>
<xsl:otherwise>
·</xsl:otherwise>
</xsl:choose>
</span>
<span>
<xsl:value-of select="@title" />
</span>
</div>
<div class="indent">
<xsl:apply-templates select="./node" />
</div>
</xsl:template>
</xsl:stylesheet><style>
body
{
background-color: #eeeeee;
font-size:14;
}
div
{
cursor:hand;
}
div.indent
{
padding-left: 30;}span
{
border:1px solid;
border-color:#999999;
font-size:14;
height:18;
}
span.
{
width:15;
height:15;
text-align:center;
border:1px solid;
border-color:#999999;
font-size:10;
background-color:white;
}
</style><SCRIPT >
function toggle(s)
{
var d = s.parentElement.nextSibling;
if (d.childNodes.length > 0)
{
if (d.style.display == '')
{
d.style.display = 'none';
s.innerText = '┼';
}
else
{
d.style.display = '';
s.innerText = '─';
}
}
}function document.onselectstart()
{
document.selection.clear();
}var xmldoc, xsldoc;
xmldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.async = false;
xmldoc.load("tree.xml");
xsldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.async = false;
xsldoc.load("tree.xsl");document.write('<div id="tree">' + xmldoc.transformNode(xsldoc) + '</div>');
</SCRIPT>
<?xml-stylesheet type="text/xsl" href="tree.xsl" ?>
<tree>
<node title="中国">
<node title="江苏">
<node title="泰州">
<node title="白马" />
</node>
<node title="徐州" />
<node title="南京" />
<node title="无锡" />
</node>
<node title="上海">
<node title="徐家汇" />
<node title="莘庄" />
<node title="中山公园" />
</node>
<node title="北京" />
<node title="四川" />
<node title="海南" />
</node>
<node title="米国">
<node title="加利福利亚" />
<node title="纽约" />
</node>
<node title="伊拉克" />
</tree>
<?xml version="1.0" encoding="GB2312" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="node">
<div>
<span onclick="toggle(this)" class="">
<xsl:choose>
<xsl:when test="count(*)>0">
─</xsl:when>
<xsl:otherwise>
·</xsl:otherwise>
</xsl:choose>
</span>
<span>
<xsl:value-of select="@title" />
</span>
</div>
<div class="indent">
<xsl:apply-templates select="./node" />
</div>
</xsl:template>
</xsl:stylesheet><style>
body
{
background-color: #eeeeee;
font-size:14;
}
div
{
cursor:hand;
}
div.indent
{
padding-left: 30;}span
{
border:1px solid;
border-color:#999999;
font-size:14;
height:18;
}
span.
{
width:15;
height:15;
text-align:center;
border:1px solid;
border-color:#999999;
font-size:10;
background-color:white;
}
</style><SCRIPT >
function toggle(s)
{
var d = s.parentElement.nextSibling;
if (d.childNodes.length > 0)
{
if (d.style.display == '')
{
d.style.display = 'none';
s.innerText = '┼';
}
else
{
d.style.display = '';
s.innerText = '─';
}
}
}function document.onselectstart()
{
document.selection.clear();
}var xmldoc, xsldoc;
xmldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.async = false;
xmldoc.load("tree.xml");
xsldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.async = false;
xsldoc.load("tree.xsl");document.write('<div id="tree">' + xmldoc.transformNode(xsldoc) + '</div>');
</SCRIPT>