posts - 35,  comments - 6,  trackbacks - 0

function addgxInput(talbeId) {
 var newline; 
 if(talbeId=='jdzl'){
  newline=document.all.jdzl.insertRow();
 }
 
   HTMLSrc1="<td height='25' align='center' class='tdline'><div align='center'>&nbsp;<input type='text' size='10' ></div></td>"; 
  HTMLSrc2="<td align='center' class='tdline'><div align='left'>&nbsp;<input type='text' size='35' ></div></td>"; 
  HTMLSrc3="<td align='center' class='tdline'><div align='center'>&nbsp;<input type='text' size='25' ></div></td>"; 
  HTMLSrc5="<td class='tdline'><div align='center'>"+
    "<a href='problemView.htm'><img src='<%=request.getContextPath()%>/images/icon/office/edit.gif' value='4' width='18' height='18' title='编辑'\"></a>"+
   "<img src='../images/icon/office/delete.gif' value='4' width='18' height='18' title='删除' onclick=\"delInput('"+talbeId+"',this.parentNode.parentNode.parentNode);\"></div></td>";
  newline.height="22";
 newline.bgcolor="#ffffff";
 newline.onMouseOver="this.style.backgroundColor='#ACDCEE'";
 newline.onMouseOut="this.style.backgroundColor='#FFFFFF'";
 newline.insertCell().innerHTML=HTMLSrc1;
 newline.insertCell().innerHTML=HTMLSrc2;
 newline.insertCell().innerHTML=HTMLSrc3;
 newline.insertCell().innerHTML=HTMLSrc5;
}

function delInput(tableId,x){
var temp="";
if(tableId=='jdzl'){
  temp=document.all.jdzl;
 }

temp.deleteRow(x.rowIndex);
}

posted on 2007-04-17 14:13 NG 阅读(391) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 
<2007年4月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

常用链接

留言簿(1)

随笔档案(35)

文章分类(5)

文章档案(2)

新闻档案(5)

java link

搜索

  •  

最新评论

阅读排行榜

评论排行榜