첨부파일 10개를 채우지 않으면 나머진 x표시가 뜹니다. 정보
첨부파일 10개를 채우지 않으면 나머진 x표시가 뜹니다.본문
말씀 그대로, 게시판 첨부파일 10개를 채우지 않으면 x자로 뜹니다.
가령 5개만 첨부하면 5개는 정상적으로 뜨고 나머지 5개는 x자로 뜹니다.
해당 게시판 주소는 http://ttin1004.woobi.co.kr/bbs/board.php?bo_table=B24&wr_id=12 이며
해당 게시판 스킨 소스중 이미지 첨부부분은 아래소스입니다.
<!------- {gblist.skin.php 에서 지정한 이미지갯수만큼 뷰화면에서 한줄로 출력 } ----//---------->
<table width="590" height="490" align='center' border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="9" rowspan="7" width="490" height="390" valign="top"><img id=orgin_img src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][0][file]?>" width="480" height="380" border="0"></td>
<td rowspan="7" width="10" height="390"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg1');" id=fimg1 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][0][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg2');" id=fimg2 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][1][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg3');" id=fimg3 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][2][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg4');" id=fimg4 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][3][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td colspan="11" width="590" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg10');" id=fimg10 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][9][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg9');" id=fimg9 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][8][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg8');" id=fimg8 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][7][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg7');" id=fimg7 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][6][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg6');" id=fimg6 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][5][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg5');" id=fimg5 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" border="0"></td>
</tr>
</table>
<!--------------- 여기까지 -------------------------------------//------->
도움좀 부탁드립니다.
가령 5개만 첨부하면 5개는 정상적으로 뜨고 나머지 5개는 x자로 뜹니다.
해당 게시판 주소는 http://ttin1004.woobi.co.kr/bbs/board.php?bo_table=B24&wr_id=12 이며
해당 게시판 스킨 소스중 이미지 첨부부분은 아래소스입니다.
<!------- {gblist.skin.php 에서 지정한 이미지갯수만큼 뷰화면에서 한줄로 출력 } ----//---------->
<table width="590" height="490" align='center' border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="9" rowspan="7" width="490" height="390" valign="top"><img id=orgin_img src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][0][file]?>" width="480" height="380" border="0"></td>
<td rowspan="7" width="10" height="390"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg1');" id=fimg1 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][0][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg2');" id=fimg2 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][1][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg3');" id=fimg3 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][2][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td width="90" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg4');" id=fimg4 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][3][file]?>" width="90" height="90" border="0"></td>
</tr>
<tr>
<td colspan="11" width="590" height="10"></td>
</tr>
<tr>
<td width="90" height="90"><img onmouseover="ch_img('fimg10');" id=fimg10 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][9][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg9');" id=fimg9 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][8][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg8');" id=fimg8 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][7][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg7');" id=fimg7 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][6][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg6');" id=fimg6 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][5][file]?>" width="90" height="90" border="0"></td>
<td width="10" height="90"></td>
<td width="90" height="90"><img onmouseover="ch_img('fimg5');" id=fimg5 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" border="0"></td>
</tr>
</table>
<!--------------- 여기까지 -------------------------------------//------->
도움좀 부탁드립니다.
댓글 전체
<td width="90" height="90"><? if($view[file][4][file]!=0){ ?><img onmouseover="ch_img('fimg5');" id=fimg5 src="<?=$g4['path']?>/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" border="0"><? }else{ ?><img src="경로/no.img"><? } ?></td>
<? if($view[file][4][file]!=0){ ?> //파일이 있으면
<? }else{ ?><img src="경로/no.img"><? } ?> //없으면 처리 --경로와 no.img는 걍 빈이미지
이런식으로 줄마다 추가하시면 될듯한데요...
테스트는 안해봐서 될지는
<? if($view[file][4][file]!=0){ ?> //파일이 있으면
<? }else{ ?><img src="경로/no.img"><? } ?> //없으면 처리 --경로와 no.img는 걍 빈이미지
이런식으로 줄마다 추가하시면 될듯한데요...
테스트는 안해봐서 될지는
답변감사합니다. 말씀하신대로 적용했더니 이미지가 썸네일로 나오질 않고 큰 이미지로 그냥 나와버립니다.
당연히 클릭했을때 플래시 효과처럼 되는것도 안되어 버리네요 ㅠㅠ
당연히 클릭했을때 플래시 효과처럼 되는것도 안되어 버리네요 ㅠㅠ