노이미지질문좀여 정보
노이미지질문좀여본문
하단이 이미지출력하는곳인데요
등록이미지가없을때 노이미지 나오게 할려면 어케해야되는지 부탁드려요...
<div style="height:10px; line-height:10px"> </div>
<center><table width="590" height="490" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="9" rowspan="7" width="490" height="390" valign="top"><img id=orgin_img src="/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="/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="/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="/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="/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="/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="/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="/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="/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="/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="/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" border="0"></td>
</tr></table></center>
등록이미지가없을때 노이미지 나오게 할려면 어케해야되는지 부탁드려요...
<div style="height:10px; line-height:10px"> </div>
<center><table width="590" height="490" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="9" rowspan="7" width="490" height="390" valign="top"><img id=orgin_img src="/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="/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="/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="/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="/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="/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="/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="/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="/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="/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="/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="90" height="90" border="0"></td>
</tr></table></center>
댓글 전체
위 소스코드 하단에 다음의 소스코드를 입력해 보세요.
<script type="text/javascript">
var noimage_path = "<?=$board_skin_path?>/img/noimage.gif";
for (var i=1; i<11; i++)
{
var fimg = document.getElementById("fimg" + i);
if (fimg) {
fimg.onerror = function() {
this.src = noimage_path;
}
}
}
</script>
<script type="text/javascript">
var noimage_path = "<?=$board_skin_path?>/img/noimage.gif";
for (var i=1; i<11; i++)
{
var fimg = document.getElementById("fimg" + i);
if (fimg) {
fimg.onerror = function() {
this.src = noimage_path;
}
}
}
</script>