<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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2330 | 16년 전 | 5072 | ||
| 2329 | 16년 전 | 2308 | ||
| 2328 | 16년 전 | 3404 | ||
| 2327 | 16년 전 | 2642 | ||
| 2326 | 16년 전 | 1562 | ||
| 2325 | 16년 전 | 5363 | ||
| 2324 | 16년 전 | 2476 | ||
| 2323 | 16년 전 | 5969 | ||
| 2322 | 16년 전 | 1942 | ||
| 2321 | 16년 전 | 4021 | ||
| 2320 | 16년 전 | 3037 | ||
| 2319 |
|
16년 전 | 2221 | |
| 2318 |
데니크레인
|
16년 전 | 2238 | |
| 2317 | 16년 전 | 4424 | ||
| 2316 | 16년 전 | 3313 | ||
| 2315 | 16년 전 | 2839 | ||
| 2314 | 16년 전 | 2968 | ||
| 2313 | 16년 전 | 2081 | ||
| 2312 | 16년 전 | 1772 | ||
| 2311 | 16년 전 | 1681 | ||
| 2310 | 16년 전 | 1400 | ||
| 2309 | 16년 전 | 1674 | ||
| 2308 | 16년 전 | 1903 | ||
| 2307 | 16년 전 | 1603 | ||
| 2306 |
|
16년 전 | 4855 | |
| 2305 | 16년 전 | 3830 | ||
| 2304 | 16년 전 | 1792 | ||
| 2303 | 16년 전 | 1535 | ||
| 2302 | 16년 전 | 2277 | ||
| 2301 | 16년 전 | 4537 | ||
| 2300 | 16년 전 | 3570 | ||
| 2299 | 16년 전 | 2590 | ||
| 2298 | 16년 전 | 4364 | ||
| 2297 | 16년 전 | 3232 | ||
| 2296 | 16년 전 | 1374 | ||
| 2295 |
|
16년 전 | 1392 | |
| 2294 |
|
16년 전 | 2050 | |
| 2293 | 16년 전 | 1895 | ||
| 2292 | 16년 전 | 2569 | ||
| 2291 | 16년 전 | 2247 | ||
| 2290 | 16년 전 | 1378 | ||
| 2289 | 16년 전 | 4394 | ||
| 2288 | 16년 전 | 1481 | ||
| 2287 | 16년 전 | 1794 | ||
| 2286 | 16년 전 | 2206 | ||
| 2285 |
|
16년 전 | 3849 | |
| 2284 |
|
16년 전 | 2739 | |
| 2283 |
|
16년 전 | 1498 | |
| 2282 | 16년 전 | 4028 | ||
| 2281 |
|
16년 전 | 1407 | |
| 2280 | 16년 전 | 1595 | ||
| 2279 | 16년 전 | 1255 | ||
| 2278 | 16년 전 | 1716 | ||
| 2277 | 16년 전 | 1620 | ||
| 2276 | 16년 전 | 1630 | ||
| 2275 | 16년 전 | 1430 | ||
| 2274 | 16년 전 | 2191 | ||
| 2273 | 16년 전 | 1842 | ||
| 2272 |
|
16년 전 | 1990 | |
| 2271 | 16년 전 | 2201 | ||
| 2270 |
a1system
|
16년 전 | 1492 | |
| 2269 | 16년 전 | 2322 | ||
| 2268 | 16년 전 | 2268 | ||
| 2267 | 16년 전 | 4543 | ||
| 2266 |
|
16년 전 | 1300 | |
| 2265 | 16년 전 | 1058 | ||
| 2264 |
잠자리똥꾸멍
|
16년 전 | 2017 | |
| 2263 |
태양의서쪽
|
16년 전 | 1985 | |
| 2262 |
태양의서쪽
|
16년 전 | 1524 | |
| 2261 |
태양의서쪽
|
16년 전 | 2049 | |
| 2260 |
|
16년 전 | 2281 | |
| 2259 | 16년 전 | 1393 | ||
| 2258 | 16년 전 | 1743 | ||
| 2257 | 16년 전 | 1923 | ||
| 2256 | 16년 전 | 1016 | ||
| 2255 | 16년 전 | 1695 | ||
| 2254 | 16년 전 | 1410 | ||
| 2253 | 16년 전 | 1926 | ||
| 2252 |
freedays
|
16년 전 | 1331 | |
| 2251 | 16년 전 | 2205 | ||
| 2250 | 16년 전 | 1884 | ||
| 2249 | 16년 전 | 5877 | ||
| 2248 | 16년 전 | 1916 | ||
| 2247 | 16년 전 | 3688 | ||
| 2246 | 16년 전 | 1469 | ||
| 2245 |
|
16년 전 | 1764 | |
| 2244 |
|
16년 전 | 2077 | |
| 2243 | 16년 전 | 2614 | ||
| 2242 | 16년 전 | 2311 | ||
| 2241 | 16년 전 | 2760 | ||
| 2240 | 16년 전 | 3002 | ||
| 2239 | 16년 전 | 3031 | ||
| 2238 |
|
16년 전 | 1828 | |
| 2237 |
|
16년 전 | 1544 | |
| 2236 |
|
16년 전 | 1420 | |
| 2235 | 16년 전 | 1732 | ||
| 2234 | 16년 전 | 1213 | ||
| 2233 | 16년 전 | 1964 | ||
| 2232 |
|
16년 전 | 1737 | |
| 2231 | 16년 전 | 1610 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기