加急问题,高手进来看下,asp产品检索加超链!

来源:百度知道 编辑:UC知道 时间:2024/06/24 06:16:52
代码如下
<%
sql = "select * from Products"
rs.open sql,conn,1,1
%>
<script language = "javascript">
var onecount2;
onecount2=0;
subcat2 = new Array();
<%
count2 = 0
do while not rs.eof
%>
subcat2[<%=count2%>] = new Array("<%= Trim(InterceptString(Rs("title"),20))%>","<%= trim(rs("SmallClassID"))%>","<%= trim(rs("id"))%>");
<%
count2 = count2 + 1
rs.movenext
loop
rs.close
%>
onecount2=<%=count2%>;

function changelocation2(locationid)
{
document.form.id.length = 0;

var locationid=locationid;
var j;
document.form.id.options[0] = new Option('三级分类','');
for (j=0;j < onecount2; j++)
{
if (subcat2[j][1] == locationid)
{
document.form.id.options[document.form

<select onChange="this.form.submit()">选中后提交
弹出用 window.open 窗口地址是加上 document.select.province.options[document.edit.select.selectedIndex].value

你类推啊!二级的都出来了。