asp二级分类问题 急。

来源:百度知道 编辑:UC知道 时间:2024/05/06 04:08:56
这是代码。现在是子栏目是展开的。。我现在像让他变成产品分类只显示总的,子目录用+_号点击显示

<table width="100%" border="0" cellpadding="2" cellspacing="1">
<%
set rs2 = server.createobject("adodb.recordset")
rs2.source = "select id,parentid,content from deeptree where parentid=0 order by id "
rs2.open rs2.source,conn,1,1
if rs2.eof then response.write"<div align='center' font style='font-size:10pt;font-family: 宋体;color=green'><br><b>还没有添加栏目!</b><br></div><br><br>"
while not rs2.eof
Pid=rs2("id")
%>
<tr bgcolor="#F3F4F3" onMouseOver = "this.style.backgroundColor = '#ffffff'" onMouseOut = "this.style.backgroundColor = '#F3F4F3'">
<td width="79" height="20" align="right"><img src

<tr>
<TD width=100% height="16">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
<!--
function ToggleDisplay(oButton, oItems){
if ((oItems.style.display == "") || (oItems.style.display == "block")) {
oItems.style.display = "none";
oButton.src = "/images/tree_plus.gif";
}
else {
oItems.style.display = "block";
oButton.src = "/images/tree_minus.gif";
}
return false;
}
function UnFoldAll() {
temp = docume