62,074
社区成员
发帖
与我相关
我的任务
分享
<div>联系人:<input type="text" name="contact" />电话:<input type="text" name="Tel" /> 删除</div>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="ceshi.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script>
var allCount;
allCount = 1;
function addLinkMan() {
allCount++;
var newRow, F1, F2, F3, F4, S1, S2, S3, S4;
var rown = filetb.rows.length;
newRow = filetb.insertRow(rown);
newRow.id = "tds" + allCount;
newRow.name = "tds" + allCount;
S1 = newRow.insertCell(0);
S1.width = "90";
S1.className = "head1_black style1";
S1.innerHTML = "联系人";
S2 = newRow.insertCell(1);
S2.innerHTML = " <input id=phone" + allCount + " name=phone" + allCount + " type='text' style='width: 130px;'/>";
S3 = newRow.insertCell(2);
S3.width = "90";
S3.className = "head1_black style1";
S3.innerHTML = "职位";
S4 = newRow.insertCell(3);
var temp = "support" + allCount;
S4.innerHTML = " <input id=support" + allCount + " name=support" + allCount + " type='text' style='width: 100px;' onchange=yzSupport('" + temp + "'); />%<img src='images/del.gif' style='cursor:pointer;' width='15' height='15' onclick=removeLinkMan(" + allCount + "); alt='删除当前联系人' />";
newRow = filetb.insertRow(rown);
newRow.id = "tdf" + allCount;
newRow.name = "tdf" + allCount;
F1 = newRow.insertCell(0);
F1.width = "90";
F1.className = "head1_black style1";
F1.innerHTML = "联系人";
F2 = newRow.insertCell(1);
F2.innerHTML = " <input id=linkmanName" + allCount + " name=linkmanName" + allCount + " type='text' style='width: 130px;'/>";
F3 = newRow.insertCell(2);
F3.width = "90";
F3.className = "head1_black style1";
F3.innerHTML = "职位";
F4 = newRow.insertCell(3);
F4.innerHTML = " <input id=position" + allCount + " name=position" + allCount + " type='text' style='width: 130px;'/>";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="button" onclick="addLinkMan()" />
<table id="filetb">
<tr>
<td>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>