<meta http-equiv= "Content-language" content= "ZH-CN" >
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title> Navigation website |---Around list content Exchange delivery </title>
<script language= "JavaScript" >
<!--Begin
Sortitems = 1; Automatically sort items within lists? (1 or 0)
function Move (Fbox,tbox) {
for (var i=0; i<fbox.options.length; i++) {
if (fbox.options[i].selected && fbox.options[i].value! = "") {
var no = new Option ();
No.value = Fbox.options[i].value;
No.text = Fbox.options[i].text;
Tbox.options[tbox.options.length] = no;
Fbox.options[i].value = "";
Fbox.options[i].text = "";
}
}
Bumpup (Fbox);
if (sortitems) SortD (Tbox);
}
function Bumpup (box) {
for (var i=0; i<box.options.length; i++) {
if (Box.options[i].value = = "") {
for (var j=i; j<box.options.length-1; J + +) {
Box.options[j].value = Box.options[j+1].value;
Box.options[j].text = Box.options[j+1].text;
}
var ln = i;
Break
}
}
if (ln < box.options.length) {
Box.options.length-= 1;
Bumpup (box);
}
}
function SortD (box) {
var temp_opts = new Array ();
var temp = new Object ();
for (var i=0; i<box.options.length; i++) {
Temp_opts[i] = box.options[i];
}
for (var x=0; x<temp_opts.length-1; x + +) {
For (Var y= (x+1); y<temp_opts.length; y++) {
if (Temp_opts[x].text > Temp_opts[y].text) {
temp = Temp_opts[x].text;
Temp_opts[x].text = Temp_opts[y].text;
Temp_opts[y].text = temp;
temp = Temp_opts[x].value;
Temp_opts[x].value = Temp_opts[y].value;
Temp_opts[y].value = temp;
}
}
}
for (var i=0; i<box.options.length; i++) {
Box.options[i].value = Temp_opts[i].value;
Box.options[i].text = Temp_opts[i].text;
}
}
End-To
</script>
<body>
<form action= "" method= "POST" >
<table border= "0" >
<tr>
<td><select multiple size= "5" name= "List1" >
<option value= "One" > Item 1.1 </option>
<option value= "> Item 1.2 </option>
<option value= "> Item 1.3 </option>
<option value= "webmaster: csr04" > Webmaster:csr04</option>
</select></td>
<td>
<input type= "button" value= ">>" onclick= "Move (this.form.list1,this.form.list2)" Name= "B1" ><br>
<input type= "button" value= "<<" onclick= "Move (this.form.list2,this.form.list1)" Name= "B2" >
</td>
<td><select multiple size= "5" name= "List2" >
<option value= "> Item 2.1 </option>
<option value= ">" Item 2.2 </option>
<option value= "> Item 2.3 </option>
<option value= "Flying Song Navigation" > Flying Song Navigation official website </option>
</select></td>
</tr>
</table>
</form>
<p> can select several projects at the same time to move around </p>
<br><br></body>
Left and right list content Exchange delivery