最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

asp實(shí)現(xiàn)無限級(jí)分類的方法js版

 更新時(shí)間:2006年06月28日 00:00:00   作者:  
MenuArr=new Array()
MenuLenArr=new Array()
SubMenuArr=new Array()
MenuIdArr=new Array()
MenuArr[1]="<%call top11%>" //洲名|||...
MenuArr[2]="<%call top1%>" //洲名###國名|||...
MenuIdArr[1]="zhou"
MenuIdArr[2]="author"
MenuClass=2 //4級(jí)菜單
splitchar1="|||";
splitchar2="###";

基本的menuArr[1]與menuArr[2]用類輸出
options.add(new Option( "-----請(qǐng)選擇-----",""));
add(new Option("text","value"))用法
js生成的value值為top1中的名字,有些用id,有些用文字,在結(jié)合數(shù)據(jù)庫select的可行性的原則下修改
sub top1

sql="select * from type2"
rs.open sql,conn,1,1
while not rs.eof
a=rs("id2")
b=rs("p_type2")
call top2(a,a)
rs.movenext
wend
rs.close
end sub

sub top11

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    
response.write (b&"###")
response.write rsa("author")&"|||"
rsa.movenext
wend
else
response.write (b&"###")
response.write "無"&"|||"
end if
rsa.close
end sub

%>

相關(guān)文章

最新評(píng)論

武安市| 中超| 铅山县| 明水县| 凌云县| 台南市| 新河县| 洛川县| 兴仁县| 启东市| 天津市| 长兴县| 常山县| 苍溪县| 西充县| 图片| 淳安县| 江山市| 青川县| 澜沧| 永清县| 永宁县| 乌拉特前旗| 华容县| 沾益县| 泾源县| 正蓝旗| 长治县| 青浦区| 祥云县| 兰西县| 石泉县| 搜索| 寿阳县| 铁岭县| 万全县| 南木林县| 启东市| 湟源县| 丹凤县| 潜山县|