人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當前位置:蘿卜系統下載站 > 技術開發教程 > 詳細頁面

下拉下文框1下拉下文框2(HTML版)

下拉下文框1下拉下文框2(HTML版)

更新時間:2021-11-16 文章作者:未知 信息來源:網絡 閱讀次數:

select.htm
說明:
本程式支持Shift和Ctrl功能!(即:連選和跳選多項Option)
可以任意的相互操作(下拉列表框1<=>下拉列表框2)!
<html>
<head>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<link rel="stylesheet" href="common.css">
</head>
<body bgColor=skyblue>
<form action="select.htm" method="post" name="myform">
<br><br><br>
<div align="center"><center><left>
<table style="FONT-SIZE: smaller">
<tr><td>
 <table>
 <tr><td>
 <select name="left_select" style="HEIGHT: 200px; WIDTH: 100px" multiple>
 <OPTION VALUE="A">A</OPTION><OPTION VALUE="B">B</OPTION>
 <OPTION VALUE="C">C</OPTION><OPTION VALUE="D">D</OPTION>
 <OPTION VALUE="E">E</OPTION><OPTION VALUE="F">F</OPTION>
 <OPTION VALUE="G">G</OPTION><OPTION VALUE="H">H</OPTION>
 <OPTION VALUE="I">I</OPTION><OPTION VALUE="J">J</OPTION>
 <OPTION VALUE="K">K</OPTION><OPTION VALUE="L">L</OPTION>
 <OPTION VALUE="M">M</OPTION><OPTION VALUE="N">N</OPTION>
 <OPTION VALUE="O">O</OPTION><OPTION VALUE="P">P</OPTION>
 </select>
 </td></tr>
 

 </td><td>
 <table border="0">
 <br><br>
 <tr><td>
 <INPUT language="javascript" name="btn_select_addany" onclick="fun_select_addany(document.myform)" style="COLOR: blue; FONT-FAMILY: Webdings; FONT-SIZE: 12pt; FONT-WEIGHT: normal; HEIGHT: 28px; WIDTH: 27px" title="Add any" type=button value="8"></td></tr><tr><td>
 <INPUT language="javascript" name="btn_select_addall" onclick="fun_select_addall(document.myform)" style="COLOR: blue; FONT-FAMILY: Webdings; FONT-SIZE: 12pt; FONT-WEIGHT: normal; HEIGHT: 28px; WIDTH: 27px" title="Add all" type=button value=: DESIGNTIMESP="17713"></td></tr><tr><td>
 <br><br></td></tr><tr><td>
 <INPUT language="javascript" name="btn_select_dltany" onclick="fun_select_dltany(document.myform)" style="COLOR: blue; FONT-FAMILY: Webdings; FONT-SIZE: 12pt; FONT-WEIGHT: normal; HEIGHT: 28px; WIDTH: 27px" title ="delete any" type=button value="7"></td></tr><tr><td>
 <INPUT language="javascript" name="btn_select_dltall" onclick="fun_select_dltall(document.myform)" style="COLOR: blue; FONT-FAMILY: Webdings; FONT-SIZE: 12pt; FONT-WEIGHT: normal; HEIGHT: 28px; WIDTH: 27px" title ="delete all" type=button value="9"></td></tr>
 <tr><td></td></tr>
 <tr><td>
 </td></tr>
 </TD><td> 
 <table style="FONT-SIZE: smaller">
 <tr><td>
 <select name="right_select" style="HEIGHT: 200px; WIDTH: 100px" multiple>
 </select>
 </td></tr>
 
 </td></TR></TBODY></TABLE></div></CENTER>
</form> 
</body>
</html>

<script language="javascript">
function fun_select_addany(theform){
var i;
for (i=0;i<theform.left_select.length;i++){
if (theform.left_select.options[i].selected == true){
 if (theform.left_select.options[i].text !=""){
theform.right_select.options[theform.right_select.length]=new Option(theform.left_select.options[i].text);
theform.left_select.options[i] =new Option("");
}
 }
}
for (i=0;i<theform.left_select.length;i++){
if (theform.left_select.options[i].text ==""){theform.left_select.options.remove(i); i--;}
}
}

function fun_select_addall(theform){
var i; 
for (i=0;i<theform.left_select.length;i++){
if (theform.left_select.options[i].text !=""){
 theform.right_select.options[theform.right_select.length]=new Option(theform.left_select.options[i].text);
 } 
}
theform.left_select.length=0; 
}

function fun_select_dltany(theform){
 var i;
for (i=0;i<theform.right_select.length;i++){
if (theform.right_select.options[i].selected == true){
 if (theform.right_select.options[i].text !=""){
theform.left_select.options[theform.left_select.length]=new Option(theform.right_select.options[i].text);
theform.right_select.options[i] =new Option("");
}
 }
}
for (i=0;i<theform.right_select.length;i++){
if (theform.right_select.options[i].text ==""){theform.right_select.options.remove(i);i--;}
}
}

function fun_select_dltall(theform){
var i; 
for (i=0;i<theform.right_select.length;i++){
if (theform.right_select.options[i].text !=""){
 theform.left_select.options[theform.left_select.length]=new Option(theform.right_select.options[i].text);
 }
}
theform.right_select.length=0;

</script>

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

網站地圖xml | 網站地圖html
主站蜘蛛池模板: 孝昌县| 德江县| 尼玛县| 科尔| 辰溪县| 齐齐哈尔市| 平和县| 葵青区| 盐池县| 当涂县| 平潭县| 合江县| 泰来县| 孟津县| 抚州市| 榆林市| 章丘市| 醴陵市| 武功县| 固安县| 弥勒县| 五家渠市| 杨浦区| 娱乐| 无锡市| 平南县| 贵德县| 凤城市| 巴东县| 南靖县| 全椒县| 常德市| 石景山区| 分宜县| 万山特区| 汕尾市| 凤山县| 霸州市| 千阳县| 通城县| 六安市|