이미지 최근게시물 팝업창 띄우기는 어떻게하나요? 정보
이미지 최근게시물 팝업창 띄우기는 어떻게하나요?본문
그냥 글로는 되는데 이미지 최근게시물을 팝업창으로 안됩니다
php안에 자바스크립트가 안먹는거 같습니다
아래는 소스입니다
<table border=0 cellspacing='0' cellpadding='0' width="640">
<tr>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo '<td width=20> </td>';
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo '<td width=20> </td>';
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
echo <<<HEREDOC
<td width='140' valign='top' align='center'>
<table width='140' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='140' height='140' align='center'>
<div style='width:140px;height:140px;border:4px solid #e1e1e1;padding:1px' align='center'>
<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')><img src='{$img}' width='140' height='140' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
<td width='140' valign='top' align='center'>
<table width='140' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='140' height='140' align='center'>
<div style='width:140px;height:140px;border:4px solid #e1e1e1;padding:1px' align='center'>
<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')><img src='{$img}' width='140' height='140' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
</table>
</table>
저기에서 이미지에 어떻게 팝업 링크를 걸수있는지 부탁드립니다
이렇게 저렇게 해도 안됩니다..ㅜㅜ
이미지만 팝업되는것이 아니라 팝업창에 내용,제목 즉 view화면 전체가 나와야 됩니다
댓글 전체
<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')><img src='{$img}' width='140' height='140' border='0' align='absmiddle' title='$title'></a>
여기서
popup_window()는 어떻게 생겼나요?
여기서
popup_window()는 어떻게 생겼나요?
popup_window()은 common.js에 있는거를 가져왔습니다
안되서 위에다가도 썻었는데 안됩니다..ㅜㅜ
<script language="javascript">
{
function popup_window(url, winname, opt)
{
window.open(url, winname, opt);
}
}
</script>
안되서 위에다가도 썻었는데 안됩니다..ㅜㅜ
<script language="javascript">
{
function popup_window(url, winname, opt)
{
window.open(url, winname, opt);
}
}
</script>
해당 페이지 주소를 적으시면 도움 받으실 확률이 더 높습니다.