打印本文 打印本文 关闭窗口 关闭窗口
利用ASP嵌套JS+SQL Server打造两级连动下拉框(二)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数11394  更新时间:2007/11/14 10:58:39  文章录入:mintao  责任编辑:mintao
      Rs.open SQL,conn,1,1

 

      j=0

      if Not Rs.Eof then

          Response.Write("function setsmall_cat(D){")&chr(13)

          Response.Write("var valuecategory=D.category.options[D.category.selectedIndex].value;")&chr(13)

          Response.write("if(valuecategory.indexOf("+chr(34)+""+chr(34)+")==0){"+chr(13)&_

                             "D.small_cat.length=1;"&_

                             "D.small_cat.options[0].value="+chr(34)+""+chr(34)+";"+chr(13)&_

                             "D.small_cat.options[0].text="+chr(34)+"**请选择城市**"+chr(34)+chr(13)&_

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ...  下一页 >> 

打印本文 打印本文 关闭窗口 关闭窗口