<link href="css/style1.css" rel="stylesheet" type="text/css">
<script language="javascript">
function showHide(sid)
{
var tb1=document.getElementById("td"+sid);
if(tb1){
if(tb1.style.display=="")
tb1.style.display="none"
else
tb1.style.display=""
}
}
</script>
<table width="222" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="222" valign="top"><TABLE height=49 cellSpacing=0 cellPadding=0 width=222 border=0>
<TR>
<TD align=middle background=images/main_05_01.jpg></TD>
</TR>
</TABLE></td>
</tr>
<tr>
<td height="43" align="right" valign="middle" bgcolor="#B6DDC8"><table width="80%" border="0" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="Product.asp">
<tr>
<td width="113" align="left" class="font18"><input name="Keyword" type="text" class="bd5" id="Keyword" size="14" value="<%if request("keyword") <> "" then response.Write request("keyword") else response.Write ""%>"></td>
<td width="65" align="left"><input type="image" name="imageField" src="images/submit.gif" /></td>
</tr>
</form>
</table></td>
</tr>
<tr>
<td valign="top"><TABLE height=45 cellSpacing=0 cellPadding=0 width=222 border=0>
<TR>
<TD align=middle background=images/main_05_05.jpg></TD>
</TR></TABLE></td>
</tr>
<tr>
<td width="222" valign="top" bgcolor="#B6DDC8">
<div class="productleft">
<ul>
<%
dim c_pid,c_id
c_pid = request("c_pid")
c_id = request("c_id")
sql="select * from ProductsClass where c_pid = 0 order by orderid asc"
set rs=conn.execute(sql)
if not rs.bof and not rs.eof then
while not rs.eof
%>
<li><a href="javascript:showHide('<%=rs("C_ID")%>');" class="link1"><img src='images/d.gif' width="5" height="5" border=0> <%=rs("C_title")%></a>
<%
Dim rs2,sql2
sql2="select * from ProductsClass where c_pid = "&rs("c_id")&" order by orderid asc"
set rs2=conn.execute(sql2)
if not rs2.bof and not rs2.eof then
%>
<li><ul id="td<%=rs("C_ID")%>" c_id") then response.Write "none"%>">
<%
while not rs2.eof
%>
<li><a href="product.asp?c_pid=<%=rs("C_ID")%>&c_id=<%=rs2("C_ID")%>" class="link1"><%=rs2("C_title")%></a></li>
<%
rs2.movenext
wend
%>
</ul></li>
<%
end if
rs2.close
set rs2=nothing
%>
</li>
<%
rs.movenext
wend
else
%>
<li>没有相关信息</li>
<%
end if
rs.close
set rs=nothing
%>
</ul>
</div></td>
</tr>
</table>
原来是需要点击第一类(主)菜单,,才可以显示第二类(分)菜单。。我希望改代码。达到直接显示第二类(分)菜单的目的。。谁可以帮忙。我愿把所有积分奉上。。