87,922
社区成员
发帖
与我相关
我的任务
分享
var TS = new Object();
TS.loader = {
//checkTcompDomsOptList: function()
Z: function(id)
{
if (document.getElementById(id))
{
return document.getElementById(id)
}
else
{
alert("not found object");
}
}
var leftSel = this.Z("leftSel");
var rightSel = this.Z("rightSel");
moveRight: function(){
for(i=0;i<leftSel.options.length;i++){
if(leftSel.options[i].selected){
rightSel.appendChild(leftSel.options[i]);
i = i - 1;
}
}
}
moveLeft: function(){
for(i=0;i<rightSel.options.length;i++){
if(rightSel.options[i].selected){
leftSel.appendChild(rightSel.options[i]);
i = i - 1;
alert(i);
}
}
}
}