就是 实现两个下拉类表 移过来 移过去的 js 代码
那位大哥 送下谢谢了
那位大哥 送下谢谢了
解决方案 »
- 多线程同时访问Queue<T>会发生互抢的情况么?
- 下血本给分,典型问题,望高手指点
- 如何卸载suse默认的JDK??
- 启动显示Warning警告, 大家帮忙看看如何解决?
- 大家帮帮忙,我是没有思路了,不知道怎么办??
- 在RMI分布式系统中,应用服务器如何把客户机发出的数据库查询请求传送到数据库服务器?
- 问个日志问题,我的tomcat/log下,有好大的日志,天天记录这些,我要如何去掉,而且这些日志是怎么引起来的啊
- XML 压缩增强web中传输性能
- 请问在JubliderX 中,EAR文件是怎么创建的啊?
- 用struts的iterator怎么循环输出下面的二维数组呀???? 急啊,搞大半天了还没弄出来。。。。
- tomcat启动时出错
- struts2 spring hibernate 页面跳转后 form表单数据清除问题
<TR>
<TD>
<select id="leftData" name="leftData" style="width:190" size="20" onDblClick="toRight()">
<option value="C/C++">C/C++</option>
<option value="C#">C#</option>
<option value="Java">Java</option>
<option value="PHP">PHP</option>
<option value="VB.Ne">VB.Net</option>
<option value="PB">PB</option>
<option value="Asp3.0">Asp3.0</option>
<option value="Javascript">Javascript</option>
<option value="XML">XML</option>
</select>
</TD>
<TD width="20" >
<input type="button" value=">>" onClick="toRight()">
<br><br>
<input type="button" value="<<" onClick="toLeft()">
</TD>
<TD>
<select id="rightData" name="rightData" style="width:190" size="20" onDblClick="toLeft()">
<option value="销售工程师">销售工程师</option>
<option value="软件设计师">软件设计师</option>
<option value="软件研发">软件研发</option>
<option value="高级程序员">高级程序员</option>
<option value="中级程序员">中级程序员</option>
<option value="助理工程师">助理工程师</option>
<option value="设计师">设计师</option>
<option value="程序员">程序员</option>
</select>
</TD>
</TR>
</TABLE><SCRIPT LANGUAGE="JavaScript">
<!--
var tLeft = document.getElementById("leftData");
var tRight = document.getElementById("rightData"); function toRight()
{
if(tLeft.selectedIndex==-1) return ; var selectedIndex = tLeft.selectedIndex;
var opt = tLeft.options[selectedIndex];
var newOpt = new Option(opt.text, opt.value);
tRight.options.add(newOpt); tLeft.options.remove(selectedIndex);
} function toLeft()
{
if(tRight.selectedIndex==-1) return ; var selectedIndex = tRight.selectedIndex;
var opt = tRight.options[selectedIndex];
var newOpt = new Option(opt.text, opt.value);
tLeft.options.add(newOpt); tRight.options.remove(selectedIndex);
}
//-->
</SCRIPT>