브

본문이미지 새창띄우기

· 2006-10-14 (토) 23:32:32 · 2958
안녕하세요 초짜 짜집퍼입니다...
소스를 어서 갖고왔는데..어딘지 가물...열심히 짜맞췃습니다.
우선올립니다.


<?
for ($i=0; $i<=4; $i++) {
$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];
}
?>

<? if ($view[file][0][view]) {?>
<img src="<?=$image[0]?>" name='gallery_img' width="500" height="500" border='0'
onclick="image_window('<?=$image[0]?>')" style='cursor:pointer'>
<? } else {?>
<img src="<?=$board_skin_path?>/img/no_image.gif" width="500" height="500" border='0'>
<? } ?>

<? if ($view[file][1][view]) {?>
<img src="<?=$image[1]?>" name='gallery_img' width="500" height="500" border='0'
onclick="image_window('<?=$image[1]?>')" style='cursor:pointer'>
<? } else {?>
<img src="<?=$board_skin_path?>/img/no_image.gif" width="500" height="500" border='0'>
<? } ?>

<? if ($view[file][2][view]) {?>
<img src="<?=$image[2]?>" name='gallery_img' width="500" height="500" border='0' onclick="image_window('<?=$image[2]?>')"style='cursor:pointer'>
<? } else {?>
<img src="<?=$board_skin_path?>/img/no_image.gif" width="500" height="500" border='0'>
<? } ?>


<? if ($view[file][3][view]) {?>
<img src="<?=$image[3]?>" name='gallery_img' width="500" height="500" border='0' onclick="image_window('<?=$image[3]?>')"style='cursor:pointer'>
<? } else {?>
<img src="<?=$board_skin_path?>/img/no_image.gif" width="500" height="500" border='0'>
<? } ?>


<? if ($view[file][4][view]) {?>
<img src="<?=$image[4]?>" name='gallery_img' width="500" height="500" border='0' onclick="images_window('<?=$image[4]?>')"style='cursor:pointer'>
<? } else {?>
<img src="<?=$board_skin_path?>/img/no_image.gif" width="500" height="500" border='0'>
<? } ?>

<? if ($view[file][5][view]) {?>
<img src="<?=$image[5]?>" name='gallery_img' width="500" height="500" border='0' onclick="fitWindowSize('<?=$image[5]?>')"style='cursor:pointer'>
<? } else {?>
<img src="<?=$board_skin_path?>/img/no_image.gif" width="500" height="500" border='0'>
<? } ?>


위내용은 " 첫번째~다섯째 파일에 이미지가 있으면 가로 세로 500으로 출력하고 본문이미지를 새창으로 띄워라 만약 이미지가 없다면 노이미지를 출력해라" 입니다...
|
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
06-10-17 조회 4,789
06-10-17 조회 3,120
06-10-17 조회 4,567
06-10-15 조회 3,450
06-10-15 조회 4,312
06-10-14 조회 2,959
06-10-14 조회 3,725
06-10-13 조회 6,406
06-10-13 조회 5,615
06-10-13 조회 2,701
06-10-11 조회 5,678
06-10-10 조회 4,800
06-10-09 조회 6,516
06-10-08 조회 4,007
06-10-03 조회 4,567
06-10-02 조회 3,015
06-10-01 조회 3,081
06-09-30 조회 7,787
06-09-28 조회 3,358
06-09-26 조회 5,265