최신글 새창 띄우기 오류

latest_box_bird의 최신글에서 latest.skin.php 부분을 새창을 띄우고자 아래와 같이 했습니다...
그런데 새창이 뜨지 않는 부분이 있어 문의 드립니다. 팁대로 했는데....모가 잘못되었나요?


<table width='100%' border='0' bordercolor="#eeeeee" cellspacing='0' cellpadding='0'
style="border-collapse:collapse; border-top:0 solid #cccccc;"
>
<tr>
<td>
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr bgcolor="#fafafa">
<td width='16'><span style="font-size:9pt;"> </span></td>
<td width='100%' height="20" align="left" valign="bottom" style="padding-top:5">

<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><b><span style="font-size:9pt;"><?=$board[bo_subject]?> </span></b></a><span style="font-size:9pt;"> </span></td>
<td align="right">

<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><img src='<?=$latest_skin_path?>/img/icon_more.gif' border=0></a>

</td>
</tr>
<tr>
<td width='16'> </td>
<td colspan="2" width='100%'>

<? for ($i=0; $i<count($list); $i++) { ?>
<table width=98% border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=20><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<?
// echo $list[$i][icon_reply] . " ";
//echo "<a href='{$list[$i][href]}'>";
echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id={$list[$i][wr_id]}','winBoard','left=50, top=50, width=800, height=600, scrollbars=1')\">";

if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]}</font>";
echo "</a>";

if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$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>
<? } ?>

<? if(count($list) == 0){ ?>게시물이 없습니다.<? } ?>

</td>
</tr>
</table>
</td>
</tr>
</table>
---------------------------------------------------
새창을 띄우기 위해
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>
--------><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'>
(잘됩니다.)

echo "<a href='{$list[$i][href]}'>";
--------> echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id={$list[$i][wr_id]}','winBoard','left=50, top=50, width=800, height=600, scrollbars=1')\">";
(게시물 내용을 클릭하면
주소표시창에 javascript:popup_window('.bbs/board.php?bo_table=notice&wr_id','winBoard','left=50, top=50, width=800, height=600, scrollbar'
그 다음
페이지에 오류가 있습니다.
라고 나오고
페이지가 열리지 않습니다.)
|

댓글 14개

자바스크립터 오류가 발생하는듯 한데...
오류가 발생하는 해당 페이지의 URL을 알려주시면 빠른답변을 얻을수있으실듯 합니다.
사내망이라 들어오실수 없어요.TT;
주소표시창에 javascript:popup_window('.bbs/board.php?bo_table=notice&wr_id','winBoard','left=50, top=50, width=800, height=600, scrollbar'

===> 해당글의 변수가 적용되지 않은게 아닌가요? 즉, wr_id 값이 넘어가지 않은듯 보이네요
echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id=".$list[$i][wr_id]."','winBoard','left=50, top=50, width=800, height=600, scrollbars=1')\">";
도움주셔서 감사합니당....그런데 여전히 주소표시창에 똑같은 오류메세지가 뜨는데요.
통 뭔 오류인지.....TT;
주소표시창이 수정전이랑 같은 내용인가요?
위 소스는 기본 베이직 스킨에 직접 적용해 보고 답을 드린것입니다만......
해당 페이지의 html 소스를 올려봐주십시오

그리고 가능하다면 파이어폭스를 설치해서 해당 페이지를 한번 보시기 바랍니다.
페이지 로딩시에 tool > javascript console 를 뛰워두고 보시면 자바스크립터의 오류 위치와 오류내역을 보실수 있을 것입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width='100%' border='0' bordercolor="#eeeeee" cellspacing='0' cellpadding='0'
style="border-collapse:collapse; border-top:0 solid #cccccc;"
>
<tr>
<td>
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr bgcolor="#fafafa">
<td width='16'><span style="font-size:9pt;"> </span></td>
<td width='100%' height="20" align="left" valign="bottom" style="padding-top:5">

<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><b><span style="font-size:9pt;"><?=$board[bo_subject]?> </span></b></a><span style="font-size:9pt;"> </span></td>
<td align="right">

<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><img src='<?=$latest_skin_path?>/img/icon_more.gif' border=0></a>



</td>
</tr>
<tr>
<td width='16'> </td>
<td colspan="2" width='100%'>

<? for ($i=0; $i<count($list); $i++) { ?>
<table width=98% border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=20><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<?
// echo $list[$i][icon_reply] . " ";
//echo "<a href='{$list[$i][href]}'>";
echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id=".$list[$i][wr_id]."','winBoard','left=50, top=50, width=800, height=600, scrollbars=1')\">";

if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]}</font>";
echo "</a>";

if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$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>
<? } ?>

<? if(count($list) == 0){ ?>게시물이 없습니다.<? } ?>

</td>
</tr>
</table>
</td>
</tr>
</table>
위 소스 그대로 제 홈에 적용시 익스나 파이어폭스나 모두 문제 없이 팝업창 뜨는데요?.......
계속 관심가져 주셔서 감사합니다...새창으로 여는게 이리 어렵다니...남들은 몇분만에도 해치운다는.....
저게 새창부분 수정한 소스이고요.
으.....????정말요????
왜 제컴에서만 안될까용?????사람타나.......TT;
javascript:popup_window의 함수는 어느 파일에 있는건가요?
js/common.js에 보세요~~~
으...제 컴에서는 새창이 왜 안되는지 모르겠어요...답변주셔서 감사합니다..........빨리 해결해야 할텐뎅....
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
19년 전 조회 2,507
19년 전 조회 1,581
19년 전 조회 1,511
19년 전 조회 1,581
19년 전 조회 1,523
19년 전 조회 1,234
19년 전 조회 1,483
19년 전 조회 1,516
19년 전 조회 1,512
19년 전 조회 1,576
19년 전 조회 1,514
19년 전 조회 1,599
19년 전 조회 1,422
19년 전 조회 1,046
19년 전 조회 942
19년 전 조회 1,608
19년 전 조회 1,020
19년 전 조회 1,512
19년 전 조회 1,868
19년 전 조회 1,682
🐛 버그신고