vbs实现的下拉框对应键入值 选择自 gu1dai 的 Blog
关键字 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 for
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>
关键字 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 for
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>
标签:
vbs实现的下拉框对应键入值
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
内蒙古资源网 Copyright www.nmgbbs.com
暂无“vbs实现的下拉框对应键入值”评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。