Enter a value in the vbs drop-down list.

Source: Internet
Author: User

In the vbs implementation drop-down box, the corresponding value is selected from the gu1dai Blog
Enter a value in the drop-down box of the keyword vbs.
<TITLE> select center </TITLE>
<Link rel = "stylesheet" type = "text/css" href = "style.css">
<Meta name = "Generator" CONTENT = "EditPlus">
<Meta name = "Author" CONTENT = "">
<Meta name = "Keywords" CONTENT = "">
<Meta name = "Description" CONTENT = "">
<Head>
<Script language = "vbScript">
<! --
Function keypress ()
Tname = mainform. tname. value
'Alert (mainform. tname. value)
For each tn in mainform. tablename

Allvalue = tn. value
If left (allvalue, len (tname) = tname then
'Alert (allvalue)
Mainform. tablename. value = allvalue
Exit
End if

Next
End function
// -->
</SCRIPT>
<Style>
Body {text-align: left; font: 12px #000080 ;}
# Main {float: left; width: 750px; border: # dddddd 1px solid; margin: 5px 10px; padding: 10px 5px ;}
# Maintable {width: 700; padding: 1px; border: 1px solid # dddddd; font: 12px; color: #000080 ;}
# Maintable td {border: 0px solid #008000; padding-left: 4px; padding-right: 4px;
Padding-top: 1px; padding-bottom: 1px; background: # dddddd}
# Search {float: left; width: 600px; border-bottom: # 0000ff 1px solid; margin: 0px; padding: 2px 10px ;}
# Result {float: left; width: 600px; border: # dddddd 0px solid; margin: 2px 1px; padding: 2px 10px ;}
# Test {float: left; width: 750px; border: # dddddd 1px solid; margin: 5px 10px; padding: 10px 100px ;}
# Main p {}
</Style>
<BODY>
<Div id = "test">
<A href = "classtrn. asp" target = "blank"> classtrn </A>
</Div>
<Div id = "main">
<Table id = maintable> select top 10 * from adjust <TR> <TD> ad_emno </TD>
<TD> ad_seqno </TD>
<TD> ad_date </TD>
<TD> ad_date1 </TD>
<TD> ad_csno1 </TD>
<TD> ad_dpno1 </TD>
<TD> ad_date2 </TD>
<TD> ad_csno2 </TD>
<TD> ad_dpno2 </TD>
<TD> ad_type </TD>
<TD> ad_type2 </TD>
<TD> updid </TD>
<TD> upddate </TD>
</Tr> </table> <form method = POST id = mainform ACTION = mtable. asp>
Select the table: <select name = tableName> <option value = a_prwork> a_prwork </option>
<Option value = account> account </option>
<Option value = adjust selected> adjust </option>
<Option value = applica1> applica1 </option>
<Option value = aprwork> aprwork </option>
<Option value = backb> backb </option>
<Option value = clothes> clothes </option>
<Option value = meal> meal </option>
<Option value = mealdept> mealdept </option>
<Option value = nosh> nosh </option>
<Option value = ostockb> ostockb </option>
<Option value = ostockh> ostockh </option>
<Option value = palletc> palletc </option>
<Option value = worktoholb> worktoholb </option>
<Option value = worktoholh> worktoholh </option>
<Option value = xcard> xcard </option>
<Option value = zv01> zv01 </option>
<Option value = zv02> zv02 </option>
</Select>
Tableame: <input type = text name = tname onkeyup = 'vbscript: keypress () '> topnum: <input type = text name = topnum size = 5> <input type = submit name = action value = submit> <input type = reset value = reset> </FORM> the time used 0.203125
</Div>
</Body>
</Html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.