글쓰기폼좀 도와줘용~

슈가스타
· 20년 전 · 1867
Untitled-2.gif
먼저 카이루님께 리스트에서 파일 아이콘 출력문제는 답변은 감사합니다.

현재는 글쓰기폼이 문제인데

스크린샷을 보시면 파일업로드는 첫번째 파일업로드를 사용했으며, 스크린샷은 첫번째 다음으로 두번째로 하고 싶은데 그게 전혀 안되네요 ㅠ_ㅠ
좀 도와주세요.. 어떻게 코딩해야할지.. 현재 아래는 제가 구현한것..

<tr>
<td valign=top>파일업로드</td>
<td class=list_eng><input type='file' class=sz1000_input3 size=32 name='bf_file[0]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'></td>
</tr>

<tr>
<td valign=top>스크린샷 <a href="javascript:add_file();" class=w_hand>+</a> <a href="javascript:del_file();" class=w_hand>-</a></td>
<td class=list_eng> <table id="variableFiles" cellpadding=0 cellspacing=0></table>
<script language="JavaScript">
function add_file(delete_code)
{
var objTbl;
var objRow;
var objCell;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];

objRow = objTbl.insertRow(objTbl.rows.length);
objCell = objRow.insertCell(0);

objCell.innerHTML = "<input type='file' class=sz1000_input3 size=32 name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
if (delete_code)
objCell.innerHTML += delete_code;
else
{
<? if ($is_file_content) { ?>
objCell.innerHTML += "<br><input type='text' class=sz1000_input3 size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
<? } ?>
;
}
}

<?=$file_script; //수정시에 필요한 스크립트?>

function del_file()
{
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
var file_length = <?=(int)$file_length?>;
var objTbl = document.getElementById("variableFiles");
if (objTbl.rows.length - 1 > file_length)
objTbl.deleteRow(objTbl.rows.length - 1);
}
</script>

첨부파일

Untitled-2.gif (4.2 KB)
0회 2005-07-10 23:05
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
20년 전 조회 2,483
20년 전 조회 2,112
★송아지★
20년 전 조회 1,985
20년 전 조회 2,745
20년 전 조회 2,171
20년 전 조회 2,664
20년 전 조회 2,490
서현진
20년 전 조회 2,617
20년 전 조회 2,502
슈가스타
20년 전 조회 1,868
20년 전 조회 4,886
20년 전 조회 2,451
20년 전 조회 2,534
20년 전 조회 2,692
20년 전 조회 2,542
★송아지★
20년 전 조회 2,581
20년 전 조회 2,368
20년 전 조회 2,055
20년 전 조회 2,776
20년 전 조회 2,136
🐛 버그신고