Menuarr=new Array ()
Menulenarr=new Array ()
Submenuarr=new Array ()
Menuidarr=new Array ()
menuarr[1]= "<%call top11%>"//Continent name | | | ...
menuarr[2]= "<%call top1%>"//Zhou Name # # #国名 | | ...
Menuidarr[1]= "Zhou"
menuidarr[2]= "Author"
menuclass=2//Level 4 menu
splitchar1= "| | |";
Splitchar2= "###";
Basic menuarr[1] and menuarr[2] with class output
Options.add ("-----Please select-----", ""));
Add (New Option ("text", "value") usage
JS generated value is the name in the TOP1, some with the ID, some with text, in conjunction with the feasibility of the database select the principle of modification
sub Top1
sql= ' select * from type2 '
Rs.Open sql,conn,1,1
While not rs.eof
A=r S ("Id2")
B=rs ("p_type2")
Call TOP2 (a,a)
Rs.movenext
Wend
rs.close
End Sub
Sub to P11
sql= ' select * from type2 '
Rs.Open sql,conn,1,1
While not rs.eof
Response.Write (rs ("P_type2" ) & "| | |")
Rs.movenext
Wend
rs.close
End Sub
Sub Top2 (id,b)
sqle= ' select DISTINCT (author) from product where id2= "&id
Set Rsa=server. CreateObject ("Adodb.recordset")
Rsa.open sqle,conn,1,1
If not (rsa.eof) then
while not rsa.eof & nbsp;
Response.Write (b& "###")
Response.Write RSA ("author") & "| | |"
Rsa.movenext
Wend
Else
Response.Write (b& "###")
Response.Write "None" & "| | |"
End If
rsa.close
End Sub
%>