Rewrite table--[js Source code] If you use it, that's the good stuff.
Source: Internet
Author: User
<title></title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<script language= "JavaScript" >
<!--
/*
1. There must be two hidden buttons: div_mode and lid;
2. Adding, modifying the input area must be in the same form as the JavaScript script rewrite table.
*/
var tr_count=2;//<tr> number of rows in the table.
var lid;//table is added, modified, and deleted, the number of TR rows for the current operation.
var table1= "<table width=" 80% "border=" 1 "bgcolor=" #FFFFFF "bordercolor=" #999999 "cellpadding=" 2 "align=" center " ><TR><TD height= ">check</td><td height=" >TD1 (name) </td><td height= "21" >TD2 (age) </td><td height= ">td3" (price) </td><td height= ">td4" (IN_DT) </td> <TD height= ">td5" (OUT_DT) </td><td height= "> Modify </td></tr>";
var td000= new Array ();
var td1= new Array ();
var td2= new Array ();
var td3= new Array ();
var td4= new Array ();
var td5= new Array ();
var td999= new Array ();
var tr= new Array ();
var data1= new Array ();
var data2= new Array ();
var data3= new Array ();
var data4= new Array ();
var data5= new Array ();
function One "show add, Modify table" by hiding button to save Div_mode state.
function Change_show (div_mode,lid)
{var Fmobj=document.form1;
if (div_mode== "add") {//fmobj.ok.value= "add";
Fmobj.div_mode.value= "Add";
Fmobj.ltd1.value= ""; fmobj.ltd2.value= "";
Fmobj.ltd3.value= ""; fmobj.ltd4.value= "";
Fmobj.ltd5.value= "";
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.