<! DOCTYPE HTML Public"-//W3C//DTD XHTML 1.0 transitional//en" "HTTP://WWW.W3.ORG/TR/XHTML1/DTD/XHTML1-TRANSITIONAL.DTD">"http://www.w3.org/1999/xhtml">"Content-type"Content="text/html; Charset=utf-8"/><title> Small Mobile </title><script type="Text/javascript">function fun1 () {varArrform=document.getelementbyid (" Left"); varArrto=document.getelementbyid (" Right"); //object's data setArr=arrform.options; //increase the selected data to the right for(i=0; i<arr.length;i++) { //determine if it is selected if(arr[i].selected) {Arrto.options.add (NewOption (Arr[i].text,arr[i].value)); } } //Delete the selected data for(i=0; i<=arr.length-1; i++) { if(arr[i].selected) {//remove the data on the left; the parameter is an optionArrform.remove (i); }}} function Fun2 () {varArrform=document.getelementbyid (" Left"); varArrto=document.getelementbyid (" Right"); //object's data setArr=arrto.options; //increase the selected data to the right for(i=0; i<arr.length;i++) { //determine if it is selected if(arr[i].selected) {Arrform.options.add (NewOption (Arr[i].text,arr[i].value)); } } //Delete the selected data for(i=0; i<=arr.length-1; i++) { if(arr[i].selected) {//remove the data on the left; the parameter is an optionArrto.remove (i); } } }</script><style type="Text/css">Select{width:100px;}</style>SelectId=" Left"Size="Ten"> <option> One</option> <option> A</option> <option> -</option> <option> -</option> <option> the</option> <option> -</option> <option> -</option> <option> -</option> <option> +</option> </Select> </td> <td> <input type="Button"Value=">>>"onclick="fun1 ()"/><br/><br/> <input type="Button"Value="<<<"onclick="fun2 ()"/> </td> <td> <SelectId=" Right"Size="Ten"> </Select> </td> </tr> </table> </body>
Small move around