谁回复一下,我好结帖

gentle_sword 2010-07-23 10:21:49
就是左边是树形的菜单,右边是点击左边条目的显示内容,最好能动态维护,类似csdn的,但没有这么复杂,不需要用户交互,只是显示帮助信息。
如果有请发链接或联系我,谢谢。
...全文
31 点赞 收藏 5
写回复
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
无伤 2010-07-23
帮顶下
回复
叫我梁大侠 2010-07-23
还少了点 ==
<style>
<!--
#foldheader{cursor:hand ; font-weight:bold ; font-size:12px; padding-top:100px; padding-left:20px
list-style-image:url(fold.gif)}
#foldheader1{cursor:hand ; font-weight:bold ; font-size:12px;
list-style-image:url(fold.gif)}
#foldinglist{list-style-image:url(list.gif)}
</style>
回复
叫我梁大侠 2010-07-23
我有个 我贴给你 好简单 我的后台就是这个的
<script language="JavaScript1.2">
<!--
/**
* Based on Folding Menu Tree
* Dynamic Drive (www.dynamicdrive.com)
* For full source code, installation instructions,
* 100's more DHTML scripts, and Terms Of
* Use, visit dynamicdrive.com
*
* Updated to support arbitrarily nested lists
* by Mark Quinn (mark@robocast.com) November 2nd 1998
*/

var head="display:''"
img1=new Image()
img1.src="fold.gif"
img2=new Image()
img2.src="open.gif"

function change(){
if(!document.all)
return
if (event.srcElement.id=="foldheader" || event.srcElement.id=="foldheader1") {
var srcIndex = event.srcElement.sourceIndex
var nested = document.all[srcIndex+1]
if (nested.style.display=="none") {
nested.style.display=''
event.srcElement.style.listStyleImage="url(open.gif)"
}
else {
nested.style.display="none"
event.srcElement.style.listStyleImage="url(fold.gif)"
}
}
}

document.onclick=change

//-->
</script>
<script type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<div id="apDiv1" style="background-repeat:no-repeat; background-position:top; background-attachment:fixed; padding-top:0px" >
<ul style="padding-top:0px; top:auto">
<li id="foldheader">首页管理</li>
<ul id="foldinglist" style="display:none">
<li><a href="admin_company_news.asp" target="main">公司动态管理</a></li>
<li><a href="admin_guestbook.asp" target="main" >客户留言管理</a></li>
<li><a href="../../../www.vancouversun.com/index.html">Vancouver Sun</a></li>
</ul>

<li id="foldheader1">员工管理</li>
<ul id="foldinglist" style="display:none">
<li><a href="../../../www.gamespot.com/index.html">GameSpot</a></li>
<li><a href="../../../www.happypuppy.com/index.html">Happy Puppy</a></li>
<li><a href="../../../www.gamecenter.com/index.html">Game Center</a></li>
</ul>

<li id="foldheader1">图片管理</li>
<ul id="foldinglist" style="display:none">
<li><a href="../../../www.download.com/index.html">outer 1</a></li>
<li><a href="../../../www.hotfiles.com/index.html">outer 2</a></li>
</ul>
<li id="foldheader1">联系管理</li>
<ul id="foldinglist" style="display:none">
<li><a href="../../../www.windows95.com/index.html">nested 1</a></li>
<li><a href="../../../www.shareware.com/index.html">nested 2</a></li>
<li><a href="../../../www.windows95.com/index.html">outer 3</a></li>
<li><a href="../../../www.shareware.com/index.html">outer 4</a></li>
</ul>
</ul>
</div>
<script language="JavaScript1.2">
<!--
/**
* Get cookie routine by Shelley Powers
* (shelley.powers@ne-dev.com)
*/
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
// if cookie exists
if (offset != -1) {
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
if (get_cookie(window.location.pathname) != ''){
var openresults=get_cookie(window.location.pathname).split(" ")
for (i=0 ; i < openresults.length ; i++){
foldinglist[openresults[i]].style.display=''
document.all[foldinglist[openresults[i]].sourceIndex -
1].style.listStyleImage="url(open.gif)"
}
}

if (document.all){
var nodelength=foldinglist.length-1
var nodes=new Array(nodelength)
var openones=''
}

function check(){
for (i=0 ; i <= nodelength ; i++){
if (foldinglist[i].style.display=='')
openones=openones + " " + i
}
document.cookie=window.location.pathname+"="+openones
}
if (document.all)
document.body.onunload=check
//-->
</script>
回复
boyd1985 2010-07-23
http://www.cnblogs.com/posoft/archive/2009/09/22/1571550.html
超全的JS树形菜单源代码共享(有实例图)


http://download.csdn.net/source/1211657
JS树形菜单代码.rar


http://www.pudn.com/downloads159/sourcecode/others/detail711829.html
梅花雪树版仿CSDN社区左侧树形菜单ASP+JS+ACCESS版
回复
youngsheep 2010-07-23
百度百度百度百度百度百度百度百度百度百度百度
回复
发动态
发帖子
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
社区公告
暂无公告