Double_ycn
(Double_ycn)
金牌会员
 
版主
UID 18281
精华
6
积分 1618
帖子 1498
金钱 1558 喜悦币
威望 60
人脉 0
阅读权限 70
注册 2003-2-8
状态 离线
|
[推荐阅读] 我使用php,不会使用mysol。
<?php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <script language="JavaScript1.2"> var theTable,theTableBody; function addNew(form){ var theTable=(document.all)?document.all.t1:document.getElementById("t1"); var theTableBody=theTable.tBodies[0];//tBodies是TBODY对象数组
var newCell; var newRow=theTableBody.insertRow(-1); newCell=newRow.insertCell(0);
var str='User: <input type="text"><br>Password:<input type="password"> <input type="checkbox" onClick="addNew(this.form)">' newCell.innerHTML=str;
} </script> </HEAD>
<BODY> <form id="f"> <table name="t1" id="t1" width="100%" border="0"> <TBODY name="tb1" id="tb1"> <tr> <td> User: <input type="text"><br> Password:<input type="password"> <input type="checkbox" onClick="addNew(this.form)"></td> </tr> </tbody> </table> </form> </BODY> </HTML> ?> 实现了你要的功能.不过只做了添加.没做del的.
|  北京亿中邮信息技术有限公司长期招聘PHP程序员。有兴趣的朋友可以发简历到yangyu@zhanzuo.net。
|
|