<% response.write ""&vbCrlf strJS="function classselect(obj){for (var i=document.refer.class_c_id.options.length;i>=0;i--){document.refer.class_c_id.options[i]=null;"&vbCrlf '清除原有option对象的JS代码 sql="select class_id,class_name from class order by class_order" set rs=conn.execute(sql) while not rs.eof response.write " if class_id<>"" then if rs("class_id")=CInt(class_id) then '使相对应的父类的option上为selected。一定加CInt函数,否则不行 response.write " selected " end if end if response.write ">"&rs("class_name")&""&vbCrlf strJS=strJS&"}"&vbCrlf&"if (obj.options[obj.selectedIndex].value=="&rs("class_id")&"){"&vbCrlf sql1="select class_c_id,class_c_name from class_c where class_id="&rs("class_id")&" order by class_c_order" set rs1=conn.execute(sql1) while not rs1.eof strJS=strJS&"document.refer.class_c_id.options[document.refer.class_c_id.options.length]=new Option('"&rs1("class_c_name")&"','"&rs1("class_c_id")&"');"&vbCrlf rs1.movenext wend rs.movenext wend '为了使第一个子类的option不为空==================================================== if class_id="" then sql="select class_id,class_name from class" set rs=conn.execute(sql) sql="select class_c_id,class_c_name from class_c where class_id="&rs("class_id")&" order by class_c_order" else sql="select class_c_id,class_c_name from class_c where class_id="&class_id&" order by class_c_order" end if set rs=conn.execute(sql) while not rs.eof if class_c_id<>"" then if rs("class_c_id")=CInt(class_c_id) then '使相对应的子类的option上为selected。if放在字符串连接前面 strJS3="var option_length=document.refer.class_c_id.options.length;"&vbCrlf strJS2="document.refer.class_c_id.options[option_length].selected=true;"&vbCrlf else strJS3="" end if end if strJS1=strJS1&strJS3&"document.refer.class_c_id.options[document.refer.class_c_id.options.length]=new Option('"&rs("class_c_name")&"','"&rs("class_c_id")&"');"&vbCrlf rs.movenext wend '================================================================================== strJS=strJS&"}"&vbCrlf&"}"& vbCrlf response.write " " response.write "" response.write "" response.write ""&vbCrlf conn.close set conn=nothing %>
哪个软件看漫画完全免费-真正全免费的漫画APP
bt磁力搜索器安卓版下载-磁力猫种子搜索器最新版下载
撕掉她的衣服2最新版本下载-撕掉她的衣服2小游戏安卓安装
精彩漫画推荐-剧情控必追漫画清单
囧次元官网APP最新版本下载安装 - 囧次元官网APP入口在线安装
免费看漫画软件哪个最好用-超流畅不卡顿的漫画app
掌机小精灵官方正版2024
环太平洋游戏中文版正版
tick tock中文版(滴答滴答双人故事)
小小梦魇2手机版中文版
解忧小村落最新版2024
解忧小村落游戏是非常好玩的一款休闲放置经营类型的手游,在这里
洋果子店rose2中文版
洋果子店rose2中文版是一款非常好玩的模拟经营手游,精美的
我的世界国际版测试版最新版
我的世界国际测试版模组,一款经典像素题材的沙盒模拟游戏,在
我的世界地下城手机版(Minecraft Dungeons)
我的世界地下城手机版是一个根据我的世界为模板而创造出来的全新
创游编辑器最新版
创游编辑器最新版,一个专门为游戏爱好者们打造游戏编辑软件,可