南强小屋 Design By 杰米

<form name=f1 METHOD="POST">

<%

OpenDB objConn, "xxxx"

Set RSClass = objConn.Execute("select * from class Order by fldClass")

If RSClass.EOF Then

Response.Write "噢,没有记录!<BR>"

Else

Response.Write "<select NAME=""class"" style=""FONT-SIZE: 9pt"" SIZE=10"

" ONCHANGE=""classselected(this);"" >"

s"function classselected(elem){" &_

vbCrlf

"for (var i = document.f1.sort.options.length; i >= 0; i--){" 

"document.f1.sort.options[i] = null;" 

vbCrlf

Do Until RSClass.EOF

If sLastClass <> RSClass("fldClass") Then

sLastClass = RSClass("fldClass")

Response.Write "<OPTION VALUE=" & RSClass("fldID") & ">" & sLastClass & "</OPTION>"

s"}" 

"if (elem.options[elem.selectedIndex].value=="

RSClass("fldID") & "){"

End If

s"MARGIN: 0cm 0cm 0pt">"document.f1.sort.options[document."

"f1.sort.options.length] = new Option('"

RSClass("fldSort") & "','" & RSClass("fldID") & "');"

vbCrlf

RSClass.MoveNext

Loop

 

Response.Write "</select>"

Response.Write "<select NAME=""sort"" style=""FONT-SIZE: 9pt"" SIZE=10>"

Response.Write "<OPTION>请选择</OPTION>"

Response.Write "</select>"

 

s"mso-spacerun: yes">  & "}"  & "}"

 

Response.Write "<SCR" & "IPT LANGUAGE="""">"

Response.Write s"mso-spacerun: yes">  & "</SCR" & "IPT>"

 

End If

RSClass.Close

Set RSClass = Nothing

%>

</form>

 

标签:
|如何|何制|制作|作关|关联|联的|的下|下拉|拉菜|菜单|单?|?|

南强小屋 Design By 杰米
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
南强小屋 Design By 杰米

评论“如何制作关联的下拉菜单?”

暂无如何制作关联的下拉菜单?的评论...