http://topic.csdn.net/t/20020527/15/756343.html
<table>
<td>
<select multiple size=10 name=sel1>
<option>1
<option>2
<option>3
<option>4
<option>5
<option>6
<option>7
<option>8
</select>
<td>
<input type=button onclick=go(sel1,sel2) value=">>"><br>
<input type=button onclick=go(sel2,sel1) value="<<"><br>
<input type=button onclick=show(sel2) value="show"><br>
<td>
<select multiple size=10 name=sel2>
</select>
</td>
</table>
<script>
function go(obj1,obj2){
for(i=0;i<obj1.length;i++)
if(obj1.options[i].selected){
obj2.add(new Option(obj1.options[i].text,obj1.options[i].value))
obj1.remove(i--);
}
}
function show(obj1){
var ret="其中有"
for(i=0;i<obj1.length;i++)ret+="\n"+obj1.options[i].text
alert(ret)
}
</script>