高手请进,立刻结贴,如何把CSDN左边树的菜单全部展开,然后存成一个网页啊????

quicklyonline 2004-09-09 09:46:27
RT
...全文
118 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
超级大笨狼 2004-11-19
  • 打赏
  • 举报
回复
superdullwolf.cnzone.net/index.asp
quicklyonline 2004-09-09
  • 打赏
  • 举报
回复
再顶
quicklyonline 2004-09-09
  • 打赏
  • 举报
回复
自己UP,难道没人会吗??
quicklyonline 2004-09-09
  • 打赏
  • 举报
回复
就是把左边菜单全部展开之后,存成一个HTML文件啊!
  • 打赏
  • 举报
回复
晕,你可以直接保存啊,你要变成什么形式??
hongxiutl 2004-09-09
  • 打赏
  • 举报
回复
网上有csdn目录数可以下载啊,我就下载了一个呢
yestoyes 2004-09-09
  • 打赏
  • 举报
回复
to 大笨狼:
你的这堆代码我看到好多次了,但我拷下来后不行啊
超级大笨狼 2004-09-09
  • 打赏
  • 举报
回复
三个文件,自己看着分别存。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="mark">
<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.mark
{
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>
  • 打赏
  • 举报
回复
除非你自己写htc文件
flyskytoday 2004-09-09
  • 打赏
  • 举报
回复
不可能另保存为一个网页的
左边树是css+javascript+xml+htm
要有好几个文件呢

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧