关于ASP搜索查询的问题

来源:百度知道 编辑:UC知道 时间:2024/05/26 10:15:00
在搜索页前加入了这段是什么意思?有什么作用啊?谢谢!!
<script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[<%=count%>] = new Array("<%= trim(rs("txt_small_class"))%>","<%= trim(rs("iid"))%>","<%= trim(rs("id"))%>");
<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount=<%=count%>;

function changelocation(locationid)
{
document.form1.sid.length = 0;

var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.form1.sid.options[document.form1.sid.length] = new Option(subcat[i][0], subcat

二级联动菜单,比如
选择第一个SELECT选项中选择"数码类产品",那么第二个SELECT表单出现那个类别的二级分类,比如:相机\电脑\等等..对搜索没有作用