asp折叠菜单(怎么实现点击一个打开,另一个收起) 同时转动别的页面还保存当前的折叠菜单,不用框架那种
<tablewidth="100%"border="0"cellpadding="0"cellspacing="0"><tr><tdwidth="193"valign="...
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="193" valign="top">
<ul class="lnav">
<%
set rs7=server.createobject("adodb.recordset")
sql7="select * from x_probclass"
rs7.open sql7,conn,1,1
if not rs7.eof then
while not rs7.eof
%>
<li id=tag<%=rs7("id")%> style="CURSOR: hand" onclick=turnit(Content<%=rs7("id")%>,tag<%=rs7("id")%>)><a href><strong><%=rs7("x_bclass")%></strong></a>
<ul id=Content<%=rs7("id")%> style="DISPLAY: none">
<%
set rs71=server.createobject("adodb.recordset")
sql71="select * from x_prosclass where x_bid="&rs7("id")&" order by x_order asc,id asc"
rs71.open sql71,conn,1,1
if not rs71.eof then
while not rs71.eof
%>
<li><a href="?page=1&bid=<%=rs7("id")%>&sid=<%=rs71("id")%>&tag=<%=rs7("id")%>" class="link1"><%=rs71("x_sclass")%></a></li>
<%
rs71.movenext
wend
end if
rs71.close
set rs71=nothing
%>
</ul>
</li>
<%
rs7.movenext
wend
end if
rs7.close
set rs7=nothing
%>
</ul>
</td>
</tr>
</table> 展开
<tr>
<td width="193" valign="top">
<ul class="lnav">
<%
set rs7=server.createobject("adodb.recordset")
sql7="select * from x_probclass"
rs7.open sql7,conn,1,1
if not rs7.eof then
while not rs7.eof
%>
<li id=tag<%=rs7("id")%> style="CURSOR: hand" onclick=turnit(Content<%=rs7("id")%>,tag<%=rs7("id")%>)><a href><strong><%=rs7("x_bclass")%></strong></a>
<ul id=Content<%=rs7("id")%> style="DISPLAY: none">
<%
set rs71=server.createobject("adodb.recordset")
sql71="select * from x_prosclass where x_bid="&rs7("id")&" order by x_order asc,id asc"
rs71.open sql71,conn,1,1
if not rs71.eof then
while not rs71.eof
%>
<li><a href="?page=1&bid=<%=rs7("id")%>&sid=<%=rs71("id")%>&tag=<%=rs7("id")%>" class="link1"><%=rs71("x_sclass")%></a></li>
<%
rs71.movenext
wend
end if
rs71.close
set rs71=nothing
%>
</ul>
</li>
<%
rs7.movenext
wend
end if
rs7.close
set rs7=nothing
%>
</ul>
</td>
</tr>
</table> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询