Regarding how to dynamically implement two mutual translation (S1 <==> S2) (Jaklin) Hello! I wish you all a happy Mid-Autumn Festival! We often encounter such a problem: How to pass a or value on the same page to another or ? This is an annoying problem. But sometimes you will meet. What do you do? Below is my "tobacco" a morning, and now let everyone share. The method is very stupid. However, it is always a bit sense.
Ha ha! Let's see, pointing pointing ..... <% @ language = vbscript%>
Textarea> p> 1111 option> 22222 33333 option> select> td> - >> u> font> label> << - u> font> label> td > <% Str = "Function do_select () {" & vbrlf & _ "if (Document.form1.select1.Options.Length> 0) {" & vbcrlf & _ "var j = 0;" & VBCRLF & _ "for (var i = 0; I 0) {" & VBCRLF & _ " Document.form1.sel2.Options [Document.form1.sel2.Options.Length] = New Option ("& _" Document.form1.select1.Options [Document.form1.select1.selectedIndIndex] .Value, "& _" Document .form1.select1.Options [Document.form1.select1.selected ";" & vbcrlf response.write " " response.write " select> td> "str = str & vbCrlf &" document.form1.select1.options [document.form1.select1.selectedIndex] = null; "& vbCrlf & _" if (document.form1.select1.options.length> 1) { "& vbCrlf '& _ Str = Str & VBCRLF & "}" & vbrlf & "}" & vbrlf & "}" "JavaScript"> "& VbcrlF response. Write Str & Vbcrf & " SCR" & "IPT>" & VBCRLF%> <% str = "" str = "function do_select2 () {" & vbcrlf & _ "if (Document.form1.sel2.Options.Length > 0) {"& VBCRLF & _" VAR J = 0; "& VBCRLF & _" for (var i = 0; i 0) { "& VBCRLF & _" Document.form1.select1.Options [Document.form1.select1.Options.Length] = 转载请注明原文地址:https://www.9cbs.com/read-1166.html9cbsNew Post(0)
Document.form1.sel2.Options [Document.form1.sel2.Options.Length] = New Option ("& _" Document.form1.select1.Options [Document.form1.select1.selectedIndIndex] .Value, "& _" Document .form1.select1.Options [Document.form1.select1.selected ";" & vbcrlf response.write "