최신글 이미지 클릭시 새창이 안 뜨게 하는법좀 가르쳐주세요. 정보
최신글 이미지 클릭시 새창이 안 뜨게 하는법좀 가르쳐주세요.
관련링크
본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : http://yiwulife.com/bbs/group.php?gr_id=04
아래소스 어디를 고쳐야 하나요??
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 3; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h = 10; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
?>
<table width="100%" border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tl.gif" width="5" height="5"></td>
<td background="<?=$latest_skin_path?>/img/box01_top.gif"></td>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tr.gif" width="5" height="5"></td>
</tr>
<tr>
<td background="<?=$latest_skin_path?>/img/box01_left.gif"></td>
<td valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" style="padding-bottom:5px"><table width="100%" height="22" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="<?=$latest_skin_path?>/img/box_bullet01.gif" width="9" height="9" align="absmiddle">
<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
<td width="47" align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/box01_more.gif" width="40" height="15" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr><td height=1 bgcolor=#FFCC00></td></tr>
<tr><td height='7'></td></tr>
<tr>
<td valign="top">
<!-- <table width=100% border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tl.gif" width="5" height="5"></td>
<td background="<?=$latest_skin_path?>/img/box01_top.gif"></td>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tr.gif" width="5" height="5"></td>
</tr>
<tr>
<td background="<?=$latest_skin_path?>/img/box01_left.gif"></td>
<td valign="top" style="padding:5px"> -->
<!-- 제품리스트시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- <tr><td height='10'></td></tr> -->
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];
if ( file_exists($thumb) )
$img = $thumb;
$style = "font-family:돋움; font-size:9pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#006F00;' ";
$subject = "<span $style>".$list[$i]['subject']."</span>"; //제목 글자수 자르기
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table width='102' cellpadding='0' cellspacing='0' border='0'>";
echo " <tr><td valign='top' align='center'><table cellpadding='1' cellspacing='1' bgcolor='#CCCCCC'><tr><td bgcolor='white'><a href=\"javascript:;\" OnClick=\"popupImage('$g4[path]/data/file/$bo_table/$image')\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\"><img src='$img' width='100' border='0'></a></td></tr></table></td></tr>";
echo " <tr><td height='21' align='center'><a href='{$list[$i]['href']}'>{$subject}</a> {$list[$i]['icon_new']}</td></tr>";
echo " <tr><td height='21' align='center'><a href='{$list[$i]['href']}'><font color='RED'>판매가 : ".number_format($list[$i][wr_9])." 원</font></td></tr></table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td height=80 align=center>상품이 등록 준비중입니다.</td>"; } ?>
</tr>
</table></td>
</tr>
</table>
<!-- 제품리스트끝 -->
</td>
<!-- <td background="<?=$latest_skin_path?>/img/box01_right.gif"></td>
</tr>
<tr>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_bl.gif" width="5" height="5"></td>
<td background="<?=$latest_skin_path?>/img/box01_bottom.gif"></td>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_br.gif" width="5" height="5"></td>
</tr>
</table> -->
</td>
</tr>
</table></td>
<td background="<?=$latest_skin_path?>/img/box01_right.gif"></td>
</tr>
<tr>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_bl.gif" width="5" height="5"></td>
<td background="<?=$latest_skin_path?>/img/box01_bottom.gif"></td>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_br.gif" width="5" height="5"></td>
</tr>
<tr><td height=0></td></tr>
</table>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
imageHandle.document.write("<title> </title>");
imageHandle.document.write("<style>");
imageHandle.document.write("*{margin:0;padding:0;border:0;}");
imageHandle.document.write("</style>");
imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>
오류 주소 : http://yiwulife.com/bbs/group.php?gr_id=04
아래소스 어디를 고쳐야 하나요??
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 3; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h = 10; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
?>
<table width="100%" border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tl.gif" width="5" height="5"></td>
<td background="<?=$latest_skin_path?>/img/box01_top.gif"></td>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tr.gif" width="5" height="5"></td>
</tr>
<tr>
<td background="<?=$latest_skin_path?>/img/box01_left.gif"></td>
<td valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" style="padding-bottom:5px"><table width="100%" height="22" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="<?=$latest_skin_path?>/img/box_bullet01.gif" width="9" height="9" align="absmiddle">
<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
<td width="47" align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/box01_more.gif" width="40" height="15" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr><td height=1 bgcolor=#FFCC00></td></tr>
<tr><td height='7'></td></tr>
<tr>
<td valign="top">
<!-- <table width=100% border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tl.gif" width="5" height="5"></td>
<td background="<?=$latest_skin_path?>/img/box01_top.gif"></td>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tr.gif" width="5" height="5"></td>
</tr>
<tr>
<td background="<?=$latest_skin_path?>/img/box01_left.gif"></td>
<td valign="top" style="padding:5px"> -->
<!-- 제품리스트시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- <tr><td height='10'></td></tr> -->
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];
if ( file_exists($thumb) )
$img = $thumb;
$style = "font-family:돋움; font-size:9pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#006F00;' ";
$subject = "<span $style>".$list[$i]['subject']."</span>"; //제목 글자수 자르기
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table width='102' cellpadding='0' cellspacing='0' border='0'>";
echo " <tr><td valign='top' align='center'><table cellpadding='1' cellspacing='1' bgcolor='#CCCCCC'><tr><td bgcolor='white'><a href=\"javascript:;\" OnClick=\"popupImage('$g4[path]/data/file/$bo_table/$image')\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\"><img src='$img' width='100' border='0'></a></td></tr></table></td></tr>";
echo " <tr><td height='21' align='center'><a href='{$list[$i]['href']}'>{$subject}</a> {$list[$i]['icon_new']}</td></tr>";
echo " <tr><td height='21' align='center'><a href='{$list[$i]['href']}'><font color='RED'>판매가 : ".number_format($list[$i][wr_9])." 원</font></td></tr></table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td height=80 align=center>상품이 등록 준비중입니다.</td>"; } ?>
</tr>
</table></td>
</tr>
</table>
<!-- 제품리스트끝 -->
</td>
<!-- <td background="<?=$latest_skin_path?>/img/box01_right.gif"></td>
</tr>
<tr>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_bl.gif" width="5" height="5"></td>
<td background="<?=$latest_skin_path?>/img/box01_bottom.gif"></td>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_br.gif" width="5" height="5"></td>
</tr>
</table> -->
</td>
</tr>
</table></td>
<td background="<?=$latest_skin_path?>/img/box01_right.gif"></td>
</tr>
<tr>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_bl.gif" width="5" height="5"></td>
<td background="<?=$latest_skin_path?>/img/box01_bottom.gif"></td>
<td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_br.gif" width="5" height="5"></td>
</tr>
<tr><td height=0></td></tr>
</table>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
imageHandle.document.write("<title> </title>");
imageHandle.document.write("<style>");
imageHandle.document.write("*{margin:0;padding:0;border:0;}");
imageHandle.document.write("</style>");
imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>
댓글 전체
OnClick="popupImage('$g4[path]/data/file/$bo_table/$image')"
위 부분이 그기능을 하는 부분일듯 싶네요.. 해당 부분을 없애거나 링크로대체하면 될듯.^-^
위 부분이 그기능을 하는 부분일듯 싶네요.. 해당 부분을 없애거나 링크로대체하면 될듯.^-^
감사합니다. 아래부분을 삭제 했는데도 안되서 원인을 찾지 못했는데 찾았네요^^
asd