<body>
<script language="JavaScript">
<!--
//ie,ns下通过
function move(a,b){
var sa=document.frm.elements[a]
var sb=document.frm.elements[b]
with(sa)
for(i=options.length-1;i>=0;i--)
if(options[i].selected){
sb.options[sb.options.length]=new Option(options[i].text,options[i].value)
options[i]=null
}
}
//-->
</script>
<form name=frm>
<select name="s1" size=4 multiple>
<option>1
<option>2
<option>3
<option>4
</select>
<input type="button" value=">>" onclick="move('s1','s2')">
<input type="button" value="<<" onclick="move('s2','s1')">
<select name="s2" size=4 multiple>
<option>.net技术
<option>JAVA世界
</select>

解决方案 »

  1.   

    <body>
    <script language="JavaScript">
    <!--
    //ie,ns下通过
    function move(a,b){
    var sa=document.frm.elements[a]
    var sb=document.frm.elements[b]
    with(sa)
    for(i=options.length-1;i>=0;i--)
    if(options[i].selected){
    sb.options[sb.options.length]=new Option(options[i].text,options[i].value)
    options[i]=null
    }
    }
    //-->
    </script>
    <form name=frm>
    <select name="s1" size=4 multiple>
    <option>1
    <option>2
    <option>3
    <option>4
    </select>
    <input type="button" value=">>" onclick="move('s1','s2')">
    <input type="button" value="<<" onclick="move('s2','s1')">
    <select name="s2" size=4 multiple>
    <option>.net技术
    <option>JAVA世界
    </select>
      

  2.   

    非常感谢 fason(阿信)  问题搞定!
    分送上!  再次感谢哈!