썸네일클릭시 본문을 새창으로 띄우는법
썸네일클릭시 본문을 새창으로 띄우는법이 궁금합니다
썸네일이미지를 클릭하면 페이지 자체의 이동이 아닌
새창으로 나오게 하고싶습니다~~~~
// 고정시킨 썸네일이 출력
$thum_width = 750;
$thum_height = 80;
if ($list[$i][file][0][file])
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
$img = "<a href=\"{$list[$i][href]}\"><img src='" .$file. "' style='border:0px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
else
{
$img = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
?>
<tr class="<?=$list[$i][is_notice]?"item_notice":""?>">
<td class="item_no" nowrap><?=$list[$i][num]?></td>
<? if($is_checkbox) { ?><td class="item_check"><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i][wr_id]?>"></td><? } ?>
<!-- 웹진 이미지 -->
썸네일이미지를 클릭하면 페이지 자체의 이동이 아닌
새창으로 나오게 하고싶습니다~~~~
// 고정시킨 썸네일이 출력
$thum_width = 750;
$thum_height = 80;
if ($list[$i][file][0][file])
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
$img = "<a href=\"{$list[$i][href]}\"><img src='" .$file. "' style='border:0px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
else
{
$img = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
?>
<tr class="<?=$list[$i][is_notice]?"item_notice":""?>">
<td class="item_no" nowrap><?=$list[$i][num]?></td>
<? if($is_checkbox) { ?><td class="item_check"><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i][wr_id]?>"></td><? } ?>
<!-- 웹진 이미지 -->
댓글 5개
14년 전
$img = "<a href=\"{$list[$i][href]}\"><img src='" .$file. "' style='border:0px solid #eaeaea;' width=$thum_width height=$thum_height></a>"; 을
$img = "<a href='javascript:window.open(\"{$list[$i]['href']}\",\"win\",\"width=500,height=400\");void(0)'><img src='" .$file. "' style='border:0px solid #eaeaea;' width=$thum_width height=$thum_height></a>"; 로 바꿔보세요.
$img = "<a href='javascript:window.open(\"{$list[$i]['href']}\",\"win\",\"width=500,height=400\");void(0)'><img src='" .$file. "' style='border:0px solid #eaeaea;' width=$thum_width height=$thum_height></a>"; 로 바꿔보세요.
14년 전
새창으로 뜨긴 하는데 썸네일로 따로 올려 목록에 보이는 이미지가 엑박이 뜨네요 크흑... 어떻게 해야할까요
14년 전
아이고 제가 잘못적용한거였꾼욬ㅋㅋㅋ 정말 감사합니다 제대로 되네요!! 넙죽넙죽~
14년 전
그럼 혹시 저 새창에 스크롤바가 나오게하려면 어떻게 해야하나요?
14년 전
아 이것도 해결했습니다 저 혼자서 연속으로 뭐하는건지 ㅋㅋㅋ 여튼 감사드립니다!
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66554 | 11년 전 | 17733 | ||
| 66553 | 11년 전 | 12554 | ||
| 66552 |
alexseo
|
11년 전 | 10188 | |
| 66551 | 11년 전 | 10925 | ||
| 66550 | 11년 전 | 10496 | ||
| 66549 | 11년 전 | 11846 | ||
| 66548 | 11년 전 | 15029 | ||
| 66547 |
스타크루즈
|
11년 전 | 11493 | |
| 66546 |
kimch
|
11년 전 | 11599 | |
| 66545 | 11년 전 | 11423 | ||
| 66544 | 11년 전 | 12271 | ||
| 66543 |
별을기다리며
|
11년 전 | 14432 | |
| 66542 |
별을기다리며
|
11년 전 | 11924 | |
| 66541 | 11년 전 | 9692 | ||
| 66540 | 11년 전 | 10566 | ||
| 66539 | 11년 전 | 16399 | ||
| 66538 | 11년 전 | 10451 | ||
| 66537 | 11년 전 | 9134 | ||
| 66536 | 11년 전 | 10574 | ||
| 66535 |
alexseo
|
11년 전 | 5590 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기