那位可以提供一下论坛左侧树形结构的代码
也可以发到
也可以发到
解决方案 »
- Ckeditor 弄得有点乱,帮忙发个教程
- 我在MyEclipse7.0中打开jsp文件是报错。用过的进来帮忙看看。!
- jscript中sql语句问题
- jsp页面中用useBean标签声明一个javabean对象,他的作用域是session,在下一个jsp页面如何调用刚才那个javabean对象?
- 求大神:%%%% Error Creating SessionFactory %%%%
- struts1出现for input string 问题着急求解决
- 怎样才能把这个id送过去?
- 怎样增加和删除<select>中的option项?
- 返回结果集中记录条数的函数?
- jsp的东东阿~~~~~~~~~~~~~~~~~~~~~~~~~~希望大家帮助阿~!谢谢啦~!
- 我在使用Struts2.0的 <s:checkbox> 标签作批量控制时,后台取不到选中的checkbox的值,怎么办?
- jsp中使用fckeditor2.5.1问题
<head>
<title>CSDN论坛导航树</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
/*<![CDATA[*/
*{margin:0;padding:0;font:normal 12px/20px Tahoma,sans-serif;}
body{background:#F6F9FD;padding:0 0 0 5px;}
input{font:normal 12px verdana,sans-serif;padding:2px 3px;margin:0 0 1px;border:1px solid #CCC;width:194px;color:#CCC;}
img{vertical-align:middle;}
td{white-space:nowrap;overflow:hidden;float:left;}
.hot_search{color:#FF0000;}
.icon{background:url(/ui/scripts/System/_resource/MzTreeView/file.gif) no-repeat;width:16px;height:16px;cursor:pointer;}
.folder{background:url(/ui/scripts/System/_resource/MzTreeView/folder.gif) no-repeat;width:16px;height:16px;cursor:pointer;}
.folderopen{background:url(/ui/scripts/System/_resource/MzTreeView/folderopen.gif) no-repeat;width:16px;height:16px;cursor:pointer;}
.space{background:url(/ui/scripts/System/_resource/MzTreeView/_line5.gif) no-repeat;width:18px;height:20px;cursor:default;}
.line1{background:url(/ui/scripts/System/_resource/MzTreeView/_line1.gif) no-repeat;width:18px;height:20px;cursor:default;}
.line2{background:url(/ui/scripts/System/_resource/MzTreeView/_line2.gif) no-repeat;width:18px;height:20px;cursor:default;}
.line4{background:url(/ui/scripts/System/_resource/MzTreeView/_line4.gif) no-repeat;width:18px;height:20px;cursor:default;}.minus1{background:url(/ui/scripts/System/_resource/MzTreeView/_minus1.gif) no-repeat;width:18px;height:20px;cursor:pointer;}
.minus2{background:url(/ui/scripts/System/_resource/MzTreeView/_minus2.gif) no-repeat;width:18px;height:20px;cursor:pointer;}
.plus1{background:url(/ui/scripts/System/_resource/MzTreeView/_plus1.gif) no-repeat;width:18px;height:20px;cursor:pointer;}
.plus2{background:url(/ui/scripts/System/_resource/MzTreeView/_plus2.gif) no-repeat;width:18px;height:20px;cursor:pointer;}input:hover,input:focus{background:#ECF6FC;}
a{text-decoration:none;padding:2px 3px;color:#000060;}
a:hover{background:#B0D4ED;text-decoration:none;color:#FFF;}
.linkfocus{background:#FFC;color:#000060;}
.search_sty{background:#FFF;padding:3px 0 5px 0;border:1px solid #000;width:200px;}
.loading{background:url(/ui/styles/default/images/loading.gif) no-repeat;width:16px;height:16px;}.item{height:20px;}
div span.text{}
div span.notice{color:#D2D2D2}
div span.functionbtn{color:#999}
div span.functionbtn a{margin:0 0 0 6px;text-decoration:underline;color:#999;background:none;}
div span.functionbtn a:hover{text-decoration:none;color:#C30;background:none;}
div span.book a{margin:0 0 0 6px;text-decoration:none;color:#ffb66b;background:none;}.regard a{color:#993300;font-weight:bold;}
.star_showpic{background:url(/ui/styles/default/images/star_favpic.png) right no-repeat;height:20px;}
* html .star_showpic{background:url(/ui/styles/default/images/star_favpic.gif) right no-repeat;height:20px;}
/*]]>*/
</style></head>
<body>
<input id="input_content" type="hidden" />
<script type="text/javascript" src="/ui/scripts/CsdnContent.js?version=2008091601"></script>
<script type="text/javascript">
var isGuest = false;
var username = "szhshaozhihua";
var content = new CsdnContent("CSDN论坛", "CSDN论坛", "../WebNavigation/StaticContents/main.js", "js", false, true, "ContentFrame", isGuest);
document.getElementById("input_content").content = content;
</script>
</body>
</html>
但我给你推荐一个jsp+ajax树菜单下载的地方,你先去看看吧,参考一下:
http://topic.csdn.net/u/20080925/13/93f49658-9be2-4962-9843-2f75b81e4b2b.html
<jsp:useBean class = "com.chat.chatset" id = "chat" scope = "application" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>导航菜单</title>
<link href="style.css" rel="stylesheet" />
<script type="text/javascript" src="js/js2.js"></script></head>
<body leftmargin="0" topmargin="0" bgcolor="#FF9800">
<table cellSpacing="0" cellPadding="0" width="100%" align="left" border="0" bgcolor="#EEEEFF">
<tr>
<td vAlign=top>
<table cellSpacing="0" cellPadding="0" width=158 align=center>
<tr style="CURSOR: hand">
<td vAlign=bottom height=42><img height=30
src="images/title.gif" width=158></td>
</tr></table>
<table cellSpacing="0" cellPadding="0" width=158 align=center>
<tr style="CURSOR: hand">
<td class=list_title id=list1
onmouseover="this.typename='list_title2';"
onclick=chang(menu1,50,list1);
onmouseout="this.typename='list_title';"
background="images/title_show.gif"
height=25><span>网站管理</span> </td>
</tr>
<tr>
<td align="center" valign="middle">
<div class=sec_menu id=menu1
style="DISPLAY: none; FILTER: alpha(Opacity=0); width: 158px; height: 0px">
<table cellSpacing="0"
cellPadding="0" width=152 align="center" background="images/bg.gif" style="padding-left:5px">
<tr>
<td height=25><a href="user/change.jsp" target="BoardList">更改初始信息</a></td>
</tr>
<tr>
<td height=25><a href="system/admin_server.jsp" target="BoardList">查看服务器信息</a></td>
</tr>
</table>
</div></td></tr></table>
<table cellSpacing="0" cellPadding="0" width=158 align=center>
<tr style="CURSOR: hand">
<td class=list_title id=list2
onclick=chang(menu2,160,list2);
background="images/title_show.gif"
height=25><span>信息管理</span> </td>
</tr>
<tr>
<td align="center">
<div class=sec_menu id=menu2
style="DISPLAY: none; FILTER: alpha(Opacity=0); width: 158px; height: 0px">
<table cellSpacing=2
cellPadding="0" width=152 align="center" background="images/bg.gif" style="padding-left:5px">
<tr>
<td height=25><a href="#" target="BoardList">xxxx</a></td>
</tr>
<tr>
<td height=25><a href="#" target="center">xxxx</a></td>
</tr>
<tr>
<td height=25><a href="#" target="center">xxxx</a></td>
</tr>
<tr>
<td height=25><a href="#" target="center">xxxx</a></td>
</tr>
<tr>
<td height=25><a href="#" target="center">xxxx</a></td>
</tr>
<tr>
<td height=25><a href="#" target="center">xxxx</a></td>
</tr>
</table>
</div></td></tr></table>
<table cellSpacing="0" cellPadding="0" width=158 align=center>
<tr style="CURSOR: hand">
<td class=list_title id=list10
onmouseover="this.typename='list_title2';"
onclick=chang(menu10,40,list10);
onmouseout="this.typename='list_title';"
background="images/title_show.gif"
height=25><span>xxxx</span> </td>
</tr>
<tr>
<td valign="middle">
<div class=sec_menu id=menu10
style="DISPLAY: none; FILTER: alpha(Opacity=0); width: 158px; height: 0px">
<table width=152 align=center
cellPadding="0" cellSpacing=2 background="images/bg.gif" style="padding-left:5px">
<tr>
<td height=40><a href="#" target="BoardList">xxxx</a></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellSpacing="0" cellPadding="0" width=158 align=center>
<tr style="CURSOR: hand">
<td class=list_title id=list4
onmouseover="this.typename='list_title2';"
onclick=chang(menu4,50,list4);
background="images/title_show.gif"
height=25><span>xxxx</span> </td>
</tr>
<tr>
<td valign="middle">
<div class=sec_menu id=menu4
style="DISPLAY: none; FILTER: alpha(Opacity=0); width: 158px; height: 0px">
<table cellSpacing=2
cellPadding="0" width=152 align="center" background="images/bg.gif" style="padding-left:5px">
<tr>
<td height=25><a href="#" target="BoardList">xxxx</a></td>
</tr>
<tr>
<td height=25><a href="#" target="BoardList">xxxx</a></td>
</tr>
</table>
</div></td>
</tr>
</table>
<script language="javascript">
var nopen="";
</body>
</html>
</script>
<table width=158 align=center cellPadding="0" cellSpacing="0">
<tr style="CURSOR: hand">
<td class=list_title id=list7
onmouseover="this.typename='list_title2';"
onclick=chang(menu7,80,list7);
background="images/title_show.gif"
height=25><span>on click this</span> </td>
</tr>
<tr>
<td valign="middle"> <div class=sec_menu id=menu7
style="DISPLAY: none; FILTER: alpha(Opacity=0); width: 158px; height: 0px">
<table width=152 align=center
cellPadding="0" cellSpacing=2 background="images/bg.gif" style="padding-left:5px">
<tr>
<td height=25><a href="r_main.jsp" target="bodyFrame">xxxx</a></td>
</tr>
<tr>
<td height=25><a href="r_main.jsp" target="bodyFrame">xxxx</a></td>
</tr>
<tr>
<td height=25><a href="r_main.jsp" target="bodyFrame">xxxx</a></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellSpacing="0" cellPadding="0" width=158 align="center">
<tr style="CURSOR: hand">
<td class=list_title id=list57
onmouseover="this.typename='list_title2';"
onclick=chang(menu57,30,list57);
background="images/title_show.gif"
height=25><span>xxxx</span> </td>
</tr>
<tr>
<td valign="middle"> <div class=sec_menu id=menu57
style="DISPLAY: none; FILTER: alpha(Opacity=0); width: 158px; height: 0px">
<table width=152 align=center
cellPadding="0" cellSpacing="0" background="images/bg.gif">
<tr>
<td height="30" style="padding-left:5px"><a href="guest/default.jsp" target="BoardList">xxxx</a></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="40" valign="middle"> <div class=sec_menu id=menu8
style="FILTER: alpha(Opacity=100); width: 158px; height:40px"><img src="images/bottom.gif" width="158" height="30"></div></td></tr></table>
</td>
<tr><td>
</table>
<script language=javascript>
function show(obj,maxg,obj2){
if(obj.style.pixelHeight<maxg){
obj.style.pixelHeight+=maxg/10;
obj.filters.alpha.opacity+=20;
obj2.background="images/title_hide.gif";
if(obj.style.pixelHeight==maxg/10)
obj.style.display='block';
myObj=obj;
mymaxg=maxg;
myObj2=obj2;
setTimeout('show(myObj,mymaxg,myObj2)','5');
}
}
function hide(obj,maxg,obj2){
if(obj.style.pixelHeight>0){
if(obj.style.pixelHeight==maxg/5)
obj.style.display='none';
obj.style.pixelHeight-=maxg/5;
obj.filters.alpha.opacity-=10;
obj2.background="images/title_show.gif";
myObj=obj;
mymaxg=maxg
myObj2=obj2;
setTimeout('hide(myObj,mymaxg,myObj2)','5');
}
else if(whichContinue) whichContinue.click();
}
function chang(obj,maxg,obj2){
if(obj.style.pixelHeight){
hide(obj,maxg,obj2);
nopen='';
whichcontinue='';
}else if(nopen){
whichContinue=obj2;
nopen.click();
}else{
show(obj,maxg,obj2);
nopen=obj2;
whichContinue='';
}
}function setchatmsg(obj)
{
var msg = document.getElementsByName(obj)[0].value;
window.open("submit.jsp?msg="+msg+"");
}
function getref(){
window.location="left.jsp#buttom";
var ref = setTimeout("getref()",2000);}
</script>