asp页面刷新后,二级菜单怎么保持不变?
<divclass="leftmain"><divclass="tit">ProductsList</div><divclass="column"><ul><%setrs...
<div class="leftmain">
<div class="tit">Products List</div>
<div class="column">
<ul>
<%
set rs=dbh.read("select c1.*,(select count(*) from vProShow p2 where p2.claID=c1.ClaId) as cou from vproClass c1 order by c1.ClaTaxis Desc,ClaId Desc")
do while not rs.eof
%>
<li>
<% If Int(Rs("Cou"))>0 Then %>
<h2 style="cursor: pointer;"><a title="<%=rs("claName")%>"><%=rs("claName")%></a></h2>
<dl style="display:none;">
<%
set rs1=dbh.read("select top 10 * from vProShow where claID="&rs("claID")&" order by proisPorClass desc,proTaxis desc, proID desc")
do while not rs1.eof
%>
<dt><a href="<%=urlto.proinfo(rs1("proID"))%>"><%=rs1("proName")%></a></dt>
<%
rs1.movenext
loop
dbh.closeobj rs1
%>
</dl>
<% Else %>
<h2 style="cursor: pointer;"><a title="<%=rs("claName")%>" href="products-list.asp?ClaId=<%=Rs("ClaId")%>"><%=rs("claName")%></a></h2>
<% End If %>
</li>
<%
rs.movenext
loop
dbh.closers
%>
</ul>
</div>
<script type="text/javascript">
$('.leftmain .column ul li h2 a').click(function(){
$(this).parent().parent().find('dl').slideToggle();
})
</script>
<!--<div class="lx">
<div class="cont">
<%=pDL.getjj("Contact us")%>
</div>
</div>-->
<%if zycp=1 then%>
<div class="mpro">
<div class="tit2">Main Products</div>
<div class="proyz">
<ul id="newspro1" f="scroll1">
<%
set rs=dbh.read("select top 15 * from vProShow where proisYN=1")
do while not rs.eof
%>
<li>
<p class="pic"><a href="products-detail.asp?cpid=<%=rs("proid")%>"><img alt="<%=rs("proName")%>" src="upfiles/<%=rs("proPic")%>" width="160" height="160" t="p1" /></a></p>
<h3 class="txt"><a href="products-detail.asp?cpid=<%=rs("proid")%>"><%=rs("proName")%></a></h3>
</li>
<%
rs.movenext
loop
dbh.closers
%>
</ul>
</div>
</div>
<%end if%>
</div> 展开
<div class="tit">Products List</div>
<div class="column">
<ul>
<%
set rs=dbh.read("select c1.*,(select count(*) from vProShow p2 where p2.claID=c1.ClaId) as cou from vproClass c1 order by c1.ClaTaxis Desc,ClaId Desc")
do while not rs.eof
%>
<li>
<% If Int(Rs("Cou"))>0 Then %>
<h2 style="cursor: pointer;"><a title="<%=rs("claName")%>"><%=rs("claName")%></a></h2>
<dl style="display:none;">
<%
set rs1=dbh.read("select top 10 * from vProShow where claID="&rs("claID")&" order by proisPorClass desc,proTaxis desc, proID desc")
do while not rs1.eof
%>
<dt><a href="<%=urlto.proinfo(rs1("proID"))%>"><%=rs1("proName")%></a></dt>
<%
rs1.movenext
loop
dbh.closeobj rs1
%>
</dl>
<% Else %>
<h2 style="cursor: pointer;"><a title="<%=rs("claName")%>" href="products-list.asp?ClaId=<%=Rs("ClaId")%>"><%=rs("claName")%></a></h2>
<% End If %>
</li>
<%
rs.movenext
loop
dbh.closers
%>
</ul>
</div>
<script type="text/javascript">
$('.leftmain .column ul li h2 a').click(function(){
$(this).parent().parent().find('dl').slideToggle();
})
</script>
<!--<div class="lx">
<div class="cont">
<%=pDL.getjj("Contact us")%>
</div>
</div>-->
<%if zycp=1 then%>
<div class="mpro">
<div class="tit2">Main Products</div>
<div class="proyz">
<ul id="newspro1" f="scroll1">
<%
set rs=dbh.read("select top 15 * from vProShow where proisYN=1")
do while not rs.eof
%>
<li>
<p class="pic"><a href="products-detail.asp?cpid=<%=rs("proid")%>"><img alt="<%=rs("proName")%>" src="upfiles/<%=rs("proPic")%>" width="160" height="160" t="p1" /></a></p>
<h3 class="txt"><a href="products-detail.asp?cpid=<%=rs("proid")%>"><%=rs("proName")%></a></h3>
</li>
<%
rs.movenext
loop
dbh.closers
%>
</ul>
</div>
</div>
<%end if%>
</div> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询