87,910
社区成员
发帖
与我相关
我的任务
分享
function setNames(the_names){
alert("=1=");
clearNames();
alert("=2=");
var size=the_names.length;
setOffsets();
var row,cell,txtNode;
for(var i=0;i<size;i++){
var nextNode=the_names[i].firstChild.data;
row=document.createElement("tr");
cell=document.createElement("td");
txtNode=document.createTextNode(nextNode);
cell.onmouseout=function(){this.className='mouseOver';}
cell.onmouseover=function(){this.className='mouseOut';}
cell.setAttribute("bgcolor","#FFFAFA");
cell.setAttribute("border","0");
cell.onclick=function(){populateName(this);}
cell.appendChild(txtNode);
row.appendChild(cell);
alert("=3=");
//=================================================================
nameTableBody.appendChild(row);//这是这句有问题,为什么啊,大家帮我看看!
//=================================================================
alert("=4="); }
}