짜집기한건데 스크립트오류가 심해요 ㅠㅠ 정보
짜집기한건데 스크립트오류가 심해요 ㅠㅠ
본문
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 1; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=16; //표시할 이미지의 가로사이즈
$imgheight=16; //표시할 이미지의 세로사이즈
$col_width = (int)(100 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="145" height="30" cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr onmouseover='this.style.backgroundColor="#f0f0f0"' onmouseout='this.style.backgroundColor="#FFFFFF"'>
<td colspan=4 align=center>
<table width="145" height="30">
<tr>
<td height="20">
<img src='<?=$latest_skin_path?>/img/<?=$i+1;?>.gif' align=absmiddle>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo "<a href='{$list[$i][link_href][1]}' target=_blank><img src='$img' width='{$imgwidth}' height='{$imgheight}' align='center' style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #ffffff; padding:0px'></a>";
echo $list[$i]['icon_reply'] . " ";
echo "<a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='{$list[$i]['wr_link1']}' target=_blank>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; position:relative; top:2px'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; position:relative; top:2px'>{$list[$i]['subject']}</font>";
echo "</a>";?>
</td></tr>
<tr>
<td height="1"><img src='<?=$latest_skin_path?>/img/line.gif' align=absmiddle></td>
</tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
==============================================================================
위 소스는 최근게시물 짜집기 한건데 실행은 잘돼요 근데 스크립트오류가 너무 심하게 나오는데
뭔가 문제인지 도무지 모르겟어요 ㅠㅠ
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 1; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=16; //표시할 이미지의 가로사이즈
$imgheight=16; //표시할 이미지의 세로사이즈
$col_width = (int)(100 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="145" height="30" cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr onmouseover='this.style.backgroundColor="#f0f0f0"' onmouseout='this.style.backgroundColor="#FFFFFF"'>
<td colspan=4 align=center>
<table width="145" height="30">
<tr>
<td height="20">
<img src='<?=$latest_skin_path?>/img/<?=$i+1;?>.gif' align=absmiddle>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo "<a href='{$list[$i][link_href][1]}' target=_blank><img src='$img' width='{$imgwidth}' height='{$imgheight}' align='center' style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #ffffff; padding:0px'></a>";
echo $list[$i]['icon_reply'] . " ";
echo "<a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='{$list[$i]['wr_link1']}' target=_blank>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; position:relative; top:2px'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; position:relative; top:2px'>{$list[$i]['subject']}</font>";
echo "</a>";?>
</td></tr>
<tr>
<td height="1"><img src='<?=$latest_skin_path?>/img/line.gif' align=absmiddle></td>
</tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
==============================================================================
위 소스는 최근게시물 짜집기 한건데 실행은 잘돼요 근데 스크립트오류가 너무 심하게 나오는데
뭔가 문제인지 도무지 모르겟어요 ㅠㅠ
댓글 전체

echo "<a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='{$list[$i]['wr_link1']}' target=_blank>";
눈에 보이는 건 이쪽... ' 가 중복되어 사용되고 있습니다.
아래로 변경
echo "<a style='text-decoration:none;' onMouseover=\"this.style.textDecoration='underline';\" onMouseout=\"this.style.textDecoration='none';\" href=\"{$list[$i]['wr_link1']}\" target=_blank>";
눈에 보이는 건 이쪽... ' 가 중복되어 사용되고 있습니다.
아래로 변경
echo "<a style='text-decoration:none;' onMouseover=\"this.style.textDecoration='underline';\" onMouseout=\"this.style.textDecoration='none';\" href=\"{$list[$i]['wr_link1']}\" target=_blank>";

오오오오옹오오오오오오오옹 천재 대박 ~!! 감사합니다 ㅠㅠㅠ

<tr><td colspan=4 align=center height=50 valign='middle'><br><a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='../bbs/board.php?bo_table=mylink'><font color='#979797'>나만의 <b>즐겨찾기</b><br> 무료 등록하세요</font></a></td></tr></table>
</td>
</tr>
<tr><td colspan=4 align=center height=50 valign='middle'><br><a style='text-decoration:none;' onMouseover='this.style.textDecoration=underline;' onMouseout='this.style.textDecoration='none';' href='../bbs/board.php?bo_table=mylink'><font color='#979797'>나만의 <b>즐겨찾기</b><br> 무료 등록하세요</font></a></td></tr></table>
</td>
</tr>
로 수정이요

헐 쫑곰이님 너무너무 감사합니다 사이트 찾아주셔서 알려주시다니 진심으로 감사합니다 ㅠㅠㅠ

상란 님, 본문에 포함되 이미지는 어떤 프로그램으로 돌린 화면인가요?

f12 버튼 눌러서 확인 하실수 있습니다 ^^ 제 화면은 익스 11용이구요

그렇군요. 처음 알았네요. ㅎ F12 눌러 가끔씩 보곤 했는데, 그 곳에 이런 화면이 있을 줄이야..ㅎ
고맙습니다. ^^
고맙습니다. ^^