메인에서 최근 게시물 제목을 클릭하면 해당 페이지로의 이동에 대한 질문입니다. 정보
메인에서 최근 게시물 제목을 클릭하면 해당 페이지로의 이동에 대한 질문입니다.본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : http://www.city-in.kr
이곳에 메인에 공지사항 최근 게시물을 클릭하면
메뉴의 공지사항 페이지로 이동하여 게시판을 불러온
iframe에 글 내용이 보여지도록 하고싶은데요
어떻게 해아할지 모르겠습니다.
제발 도와주세요.
<table width=100% border=0 cellpadding=0 cellspacing=0 <?=$options?>>
<tr>
<td align=center valign=top>
<? for ($i=0; $i<$rows; $i++) { ?>
<table width=95% border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=25 <?if ($i<$rows-1) {?> style="padding:3px 0 0 0; border-bottom:1px dotted #ebebeb;" <?}?> >
<img src='../../../../img/main/ic_yellow.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}' target='_top'>";
echo "{$list[$i]['subject']}";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-size:10px; color:#FF6600;'>{$list[$i]['comment_cnt']}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
//echo " " . $list[$i]['icon_new'];
//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_link'];
//echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?>
</td>
</tr>
</table>
<? } ?>
</td>
</tr>
</table>
오류 주소 : http://www.city-in.kr
이곳에 메인에 공지사항 최근 게시물을 클릭하면
메뉴의 공지사항 페이지로 이동하여 게시판을 불러온
iframe에 글 내용이 보여지도록 하고싶은데요
어떻게 해아할지 모르겠습니다.
제발 도와주세요.
<table width=100% border=0 cellpadding=0 cellspacing=0 <?=$options?>>
<tr>
<td align=center valign=top>
<? for ($i=0; $i<$rows; $i++) { ?>
<table width=95% border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=25 <?if ($i<$rows-1) {?> style="padding:3px 0 0 0; border-bottom:1px dotted #ebebeb;" <?}?> >
<img src='../../../../img/main/ic_yellow.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}' target='_top'>";
echo "{$list[$i]['subject']}";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-size:10px; color:#FF6600;'>{$list[$i]['comment_cnt']}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
//echo " " . $list[$i]['icon_new'];
//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_link'];
//echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?>
</td>
</tr>
</table>
<? } ?>
</td>
</tr>
</table>
댓글 전체
위 소스는 아무 상관 없는 것이구요
notice.php의 iframe 부분에 오류가 있는 것 같습니다
iframe 기본 높이 100%로 되어있는 것을 300이나 400 으로 수정하고
iframe 리사이즈 함수에서
var frbody = fr.contentWindow.document.body; 를
var frbody = fr.document.body; 로 수정 하세요
td 속성도 top을 넣어줘야 iframe이 위쪽으로 출력 되겠네요
notice.php의 iframe 부분에 오류가 있는 것 같습니다
iframe 기본 높이 100%로 되어있는 것을 300이나 400 으로 수정하고
iframe 리사이즈 함수에서
var frbody = fr.contentWindow.document.body; 를
var frbody = fr.document.body; 로 수정 하세요
td 속성도 top을 넣어줘야 iframe이 위쪽으로 출력 되겠네요