请教大家一个二级菜单联动的代码.我做了一个二级连动.大类是定了,想要显示小类,需要获取大类.但是再不提交表单的情况下怎么能获取到大类的内容??请大家们给看看~!谢谢,代码如下
<!--#include file="conn.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.STYLE1 {color: #000000;
font-weight: bold;
}
.style4 {color: #FF0000}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
.F12 {
font-size: 12px;
font-weight: normal;
color: #000000;
}
a:active {
text-decoration: none;
}
.F14 {
font-size: 12px;
font-weight: 600;
color: #000000;
}
-->
</style>
<table width="98%" border="5" align="center" cellpadding="5" cellspacing="5" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
<tr>
<td height="16" background="images/topbg.gif"><span class="F14">您现在所在的位置是:</span> <span class="F14"><a href="admin.asp" class="F14">管理首页</a> -></span><span class="STYLE1"> <span class="F14">网站基本设置</span></span></td>
</tr>
<tr>
<td height="107" valign="top" bgcolor="#FFFFFF"> <br>
<form id="form1" name="form1" method="post" action="Pz_Update.asp">
<table width="98%" border="2" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#CCCCCC">
<%
Dim Sql
set rs=server.CreateObject("adodb.recordset")
Sql="select * from SmallClass"
rs.Open Sql,conn,1,1
%>
<tr>
<td width="20%" align="right" background="images/topbg.gif" bgcolor="#f4f4f4"><strong class="F12">信息标题:</strong></td>
<td width="80%" bgcolor="#FFFFFF"><input name="News_Title" type="text" class="input_sr" id="News_Title" size="28" /></td>
</tr>
<tr>
<td align="right" background="images/topbg.gif" bgcolor="#f4f4f4"><strong class="F12">发布时间:</strong></td>
<td bgcolor="#FFFFFF"><input name="News_Time" type="text" class="input_sr" id="News_Time" size="28" /> </td>
</tr>
<tr>
<td align="right" background="images/topbg.gif" bgcolor="#f4f4f4"><strong class="F12">发布者:</strong></td>
<td bgcolor="#FFFFFF"><input name="News_Body" type="text" class="input_sr" id="News_Body" size="28" /> </td>
</tr>
<tr>
<td align="right" background="images/topbg.gif" bgcolor="#f4f4f4"><strong class="F12">所属大类:</strong></td>
<td bgcolor="#FFFFFF"><select name="BigClassName" size="1" id="BigClassName">
<option value="<%=rs("BigClassName")%>"><%=rs("BigClassName")%></option>
</select>
</td>
</tr>
<tr>
<td align="right" background="images/topbg.gif" bgcolor="#f4f4f4"><strong class="F12">所属小类:</strong></td>
<td bgcolor="#FFFFFF"><select name="SmallClassName" id="SmallClassName">
</select></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#F4F4F4"><strong class="F12">公司简介:</strong></td>
<td bgcolor="#FFFFFF"><input type="hidden" name="content" value="">
</textarea>
<iframe id="content" src="edit/ewebeditor.asp?id=content&style=news" frameborder="0" scrolling="No" width="550" height="350" marginwidth="1" marginheight="1" name="content"></iframe></td>
</tr>
<tr>
<td height="22" colspan="2" align="center" bgcolor="#F4F4F4"><input name="Submit" type="submit" class="input_bot" value="提交" />
<input name="Submit2" type="reset" class="input_bot" value="重置" /> </td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>