<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Untitled Document</title>
<script language="javascript">
var curRow; //全局行号
var curColor;
function add(){
tdTarget.innerHTML+=divsource.innerHTML;
}
</script>
</head>
<body >
<input type="button" onClick="add()" value="添加">
<div id="divsource" style="display:none "><input type="text" style="width:100 "></div>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td id="tdTarget"> </td>
</tr>
</table></body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Untitled Document</title>
<script language="javascript">
var curRow; //全局行号
var curColor;
function add(){
tdTarget.innerHTML+=divsource.innerHTML;
}
</script>
</head>
<body >
<input type="button" onClick="add()" value="添加">
<div id="divsource" style="display:none "><input type="text" style="width:100 "></div>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td id="tdTarget"> </td>
</tr>
</table></body>
</html>
function setInput(){
str+='<div align="center"><input type="input" name="inputtemp"></div><br>';
window.tempid.innerHTML=str+'<br>';
}
</script>
<input type="button" onclick="setInput();" value="Add"> <td align="left" id="tempid" height="122">
</td>
<div id=ad></div>
</form>
<input type="button" value="添加" onclick="ad.insertAdjacentHTML('beforeEnd','文本:<input type=text><br>')">