<Table width="324" border="0" cellpadding="0" cellspacing="0" align="center">
<tr height="1"><td bgcolor="#0b7b8f"></td></tr>
<tr><td>
<Table width="100%" border="0" cellpadding="0" cellspacing="0" style="color:#555555;font-weight:bold;">
<Tr height="20">
<td width="10%" align="right"><a href="Javascript:;" onClick="AddTable('cash_table',0)">추가</a></td>
</Tr></Table></td></tr>
</Table>
<Table width='324' border='0' cellpadding='0' cellspacing='0' align='center' id='cash_table' bgcolor='#add1d6'>
<tr height="32">
<td align='center' width='322'>
<Table width='322' border='0' cellpadding='0' cellspacing='1' align='center'>
<tr align='center' height='30' bgcolor='#FFFFFF'>
<td><input type='text' class=text_input name='c_in_summary[]' value=''></td>
<td><input type='text' class=text_input name='c_in_amount[]' value=''></td>
<td><input type='text' class=text_input name='c_in_remark[]' value=''></td>
</tr>
</Table>
</td>
<td></td>
</tr>
</Table>
<Script Language="JavaScript">
var cnt = 2;
function AddTable(tbl_name, onevent) {
var intc = tbl_name.substring(0,1);
var tbl = document.getElementById(tbl_name);
var trow = tbl.insertRow(-1);
trow.height = 32;
trow.id = cnt;
var tcol1 = trow.insertCell(-1);
tcol1.innerHTML = "<Table width='322' border='0' cellpadding='0' cellspacing='1' align='center'>\n<tr align='center' height='30' bgcolor='#FFFFFF'>\n<td><input type='text' class=text_input name='"+intc+"_in_summary[]' value=''></td>\n<td><input type='text' class=text_input name='"+intc+"_in_amount[]' value=''></td>\n<td><input type='text' class=text_input name='"+intc+"_in_remark[]' value=''></td>\n</tr>\n</Table>\n";
var tcol4 = trow.insertCell(-1);
tcol4.vAlign = "top";
tcol4.innerHTML = "<div style='position:absolute;width:20px;height:30px;'> </div><div id='del_"+cnt+"' style='position:absolute;border:1px solid #add1d6;color:#add1d6;cursor:hand;height:32px;display:none;'>×</div>";
tcol4.onmouseover=function(){
trow.style.backgroundColor="#F4F4F4";
document.getElementById("del_"+trow.id).style.display = "";
}
tcol4.onmouseout =function(){
trow.style.backgroundColor="#add1d6";
document.getElementById("del_"+trow.id).style.display = "none";
}
tcol4.onclick =function(){
tbl.deleteRow(trow.rowIndex);
}
cnt++;
}
</script>
미리보기는 링크를 이용하세여~~
추가 후 삭제는 셀 끝 부분에 마우스 가져가시면 삭제 버튼 나옵니다~
<tr height="1"><td bgcolor="#0b7b8f"></td></tr>
<tr><td>
<Table width="100%" border="0" cellpadding="0" cellspacing="0" style="color:#555555;font-weight:bold;">
<Tr height="20">
<td width="10%" align="right"><a href="Javascript:;" onClick="AddTable('cash_table',0)">추가</a></td>
</Tr></Table></td></tr>
</Table>
<Table width='324' border='0' cellpadding='0' cellspacing='0' align='center' id='cash_table' bgcolor='#add1d6'>
<tr height="32">
<td align='center' width='322'>
<Table width='322' border='0' cellpadding='0' cellspacing='1' align='center'>
<tr align='center' height='30' bgcolor='#FFFFFF'>
<td><input type='text' class=text_input name='c_in_summary[]' value=''></td>
<td><input type='text' class=text_input name='c_in_amount[]' value=''></td>
<td><input type='text' class=text_input name='c_in_remark[]' value=''></td>
</tr>
</Table>
</td>
<td></td>
</tr>
</Table>
<Script Language="JavaScript">
var cnt = 2;
function AddTable(tbl_name, onevent) {
var intc = tbl_name.substring(0,1);
var tbl = document.getElementById(tbl_name);
var trow = tbl.insertRow(-1);
trow.height = 32;
trow.id = cnt;
var tcol1 = trow.insertCell(-1);
tcol1.innerHTML = "<Table width='322' border='0' cellpadding='0' cellspacing='1' align='center'>\n<tr align='center' height='30' bgcolor='#FFFFFF'>\n<td><input type='text' class=text_input name='"+intc+"_in_summary[]' value=''></td>\n<td><input type='text' class=text_input name='"+intc+"_in_amount[]' value=''></td>\n<td><input type='text' class=text_input name='"+intc+"_in_remark[]' value=''></td>\n</tr>\n</Table>\n";
var tcol4 = trow.insertCell(-1);
tcol4.vAlign = "top";
tcol4.innerHTML = "<div style='position:absolute;width:20px;height:30px;'> </div><div id='del_"+cnt+"' style='position:absolute;border:1px solid #add1d6;color:#add1d6;cursor:hand;height:32px;display:none;'>×</div>";
tcol4.onmouseover=function(){
trow.style.backgroundColor="#F4F4F4";
document.getElementById("del_"+trow.id).style.display = "";
}
tcol4.onmouseout =function(){
trow.style.backgroundColor="#add1d6";
document.getElementById("del_"+trow.id).style.display = "none";
}
tcol4.onclick =function(){
tbl.deleteRow(trow.rowIndex);
}
cnt++;
}
</script>
미리보기는 링크를 이용하세여~~
추가 후 삭제는 셀 끝 부분에 마우스 가져가시면 삭제 버튼 나옵니다~
[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2130 | 17년 전 | 1186 | ||
| 2129 |
ⓧ힘내세요
|
17년 전 | 2240 | |
| 2128 | 17년 전 | 2875 | ||
| 2127 | 17년 전 | 4058 | ||
| 2126 | 17년 전 | 3145 | ||
| 2125 | 17년 전 | 1409 | ||
| 2124 | 17년 전 | 1707 | ||
| 2123 | 17년 전 | 2239 | ||
| 2122 | 17년 전 | 1546 | ||
| 2121 | 17년 전 | 1726 | ||
| 2120 | 17년 전 | 2719 | ||
| 2119 | 17년 전 | 2147 | ||
| 2118 | 17년 전 | 1799 | ||
| 2117 |
아름다운세상
|
17년 전 | 4208 | |
| 2116 | 17년 전 | 3049 | ||
| 2115 | 17년 전 | 1435 | ||
| 2114 |
아름다운세상
|
17년 전 | 3571 | |
| 2113 | 17년 전 | 2798 | ||
| 2112 | 17년 전 | 2077 | ||
| 2111 | 17년 전 | 1295 | ||
| 2110 | 17년 전 | 2336 | ||
| 2109 | 17년 전 | 2071 | ||
| 2108 | 17년 전 | 1993 | ||
| 2107 |
휴전합시다
|
17년 전 | 1926 | |
| 2106 | 17년 전 | 1172 | ||
| 2105 |
|
17년 전 | 1873 | |
| 2104 | 17년 전 | 2930 | ||
| 2103 | 17년 전 | 1435 | ||
| 2102 | 17년 전 | 1672 | ||
| 2101 | 17년 전 | 1357 | ||
| 2100 | 17년 전 | 1604 | ||
| 2099 | 17년 전 | 1577 | ||
| 2098 | 17년 전 | 1447 | ||
| 2097 | 17년 전 | 2569 | ||
| 2096 | 17년 전 | 2331 | ||
| 2095 | 17년 전 | 2114 | ||
| 2094 | 17년 전 | 1423 | ||
| 2093 | 17년 전 | 2439 | ||
| 2092 | 17년 전 | 4264 | ||
| 2091 | 17년 전 | 2754 | ||
| 2090 | 17년 전 | 1668 | ||
| 2089 | 17년 전 | 1859 | ||
| 2088 | 17년 전 | 3241 | ||
| 2087 | 17년 전 | 2237 | ||
| 2086 | 17년 전 | 3835 | ||
| 2085 | 17년 전 | 1682 | ||
| 2084 | 17년 전 | 2287 | ||
| 2083 | 17년 전 | 2110 | ||
| 2082 | 17년 전 | 1617 | ||
| 2081 | 17년 전 | 2129 | ||
| 2080 |
letsgolee
|
17년 전 | 1922 | |
| 2079 | 17년 전 | 1962 | ||
| 2078 | 17년 전 | 3077 | ||
| 2077 | 17년 전 | 2152 | ||
| 2076 | 17년 전 | 1444 | ||
| 2075 | 17년 전 | 1463 | ||
| 2074 | 17년 전 | 2135 | ||
| 2073 | 17년 전 | 3207 | ||
| 2072 | 17년 전 | 2143 | ||
| 2071 |
휴전합시다
|
17년 전 | 1536 | |
| 2070 | 17년 전 | 4253 | ||
| 2069 | 17년 전 | 2046 | ||
| 2068 | 17년 전 | 3470 | ||
| 2067 | 17년 전 | 6041 | ||
| 2066 | 17년 전 | 1486 | ||
| 2065 |
letsgolee
|
17년 전 | 1655 | |
| 2064 | 17년 전 | 1235 | ||
| 2063 | 17년 전 | 1350 | ||
| 2062 |
vicky
|
17년 전 | 2878 | |
| 2061 | 17년 전 | 1910 | ||
| 2060 |
카프카07
|
17년 전 | 2597 | |
| 2059 | 17년 전 | 1311 | ||
| 2058 | 17년 전 | 3188 | ||
| 2057 | 17년 전 | 2167 | ||
| 2056 | 17년 전 | 2615 | ||
| 2055 | 17년 전 | 1408 | ||
| 2054 | 17년 전 | 1761 | ||
| 2053 | 17년 전 | 1152 | ||
| 2052 |
|
17년 전 | 1211 | |
| 2051 | 17년 전 | 1796 | ||
| 2050 | 17년 전 | 1235 | ||
| 2049 | 17년 전 | 4318 | ||
| 2048 | 17년 전 | 1518 | ||
| 2047 | 17년 전 | 2014 | ||
| 2046 |
카프카07
|
17년 전 | 7097 | |
| 2045 | 17년 전 | 1388 | ||
| 2044 | 17년 전 | 1908 | ||
| 2043 | 17년 전 | 3137 | ||
| 2042 | 17년 전 | 1232 | ||
| 2041 |
카프카07
|
17년 전 | 1989 | |
| 2040 | 17년 전 | 1169 | ||
| 2039 |
smilesol
|
17년 전 | 1863 | |
| 2038 | 17년 전 | 2167 | ||
| 2037 |
|
17년 전 | 2979 | |
| 2036 | 17년 전 | 1252 | ||
| 2035 |
|
17년 전 | 1346 | |
| 2034 |
ㅣ곰탱이ㅣ
|
17년 전 | 1568 | |
| 2033 |
|
17년 전 | 1234 | |
| 2032 | 17년 전 | 4363 | ||
| 2031 | 17년 전 | 3905 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기