作家
登录

asp实现无限级分类的方法js版

作者: 来源:www.28hudong.com 2013-03-30 09:05:14 阅读 我要评论

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级菜单splitchar1="|||";splitchar2="###";基本的menuArr[1]与menuArr[2]用类输出options.add(new Option( "-----请选择-----","")); add(new Option("text","value"))用法js生成的value值为top1中的名字,有些用id,有些用文字,在结合数据库select的可行性的原则下修改 sub top1sql="select * from type2"rs.open sql,conn,1,1while not rs.eofa=rs("id2")b=rs("p_type2")call top2(a,a) rs.movenextwendrs.closeend subsub top11sql="select * from type2"rs.open sql,conn,1,1while not rs.eofresponse.write (rs("p_type2")&"|||")rs.movenextwendrs.closeend subsub top2 (id,b)sqle="select DISTINCT(author) from product where id2="&idset rsa=server.CreateObject("adodb.recordset")rsa.open sqle,conn,1,1if not(rsa.eof) thenwhile not rsa.eof response.write (b&"###")response.write rsa("author")&"|||"rsa.movenextwendelseresponse.write (b&"###")response.write "无"&"|||"end ifrsa.closeend sub%>

  推荐阅读

  XML相关技术资料

xmlHTTP技术: ---------------------------------------------------------- 一、数据库远程管理技术 基于互联网的广域网现代应用中的一个重要环节是数据库远程监控。首先简单回顾一下互联网上的数据库远程管理>>>详细阅读


本文标题:asp实现无限级分类的方法js版

地址:http://www.17bianji.com/kaifa2/ASP/33250.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)