갤러리 스킨을 쓰는데요..새창 뜨기가 잘안되네요... 정보
그누보드 갤러리 스킨을 쓰는데요..새창 뜨기가 잘안되네요...본문
갤러리 스킨을 쓰는데요....스킨 이름은...no_gd_gallery인데요...
새창뜨기를 해도..잘안되요...
수정하신분은 좀 가르쳐주세요....
수정하신 자료를 주시면 더 좋구요.....
아니면...다른 갤러리를 새창에 띠우는 방법을 좀 가르쳐주세요....
죄송합니다..
제가 컴퓨터를 잘 못해서요...
부탁드립니다...
새창뜨기를 해도..잘안되요...
수정하신분은 좀 가르쳐주세요....
수정하신 자료를 주시면 더 좋구요.....
아니면...다른 갤러리를 새창에 띠우는 방법을 좀 가르쳐주세요....
죄송합니다..
제가 컴퓨터를 잘 못해서요...
부탁드립니다...
댓글 전체
no_gd_gallery 의 gblist.skin.php 를 열으신 후
</script> 94번줄
// 이곳에 아래 소스를 삽입 합니다.
<style type="text/css">
//여기부터
<SCRIPT LANGUAGE="JavaScript">
function CaricaFoto(img){
foto1= new Image();
foto1.src=(img);
Controlla(img);
}
function Controlla(img){
if((foto1.width!=0)&&(foto1.height!=0)){
viewFoto(img);
}
else{
funzione="Controlla('"+img+"')";
intervallo=setTimeout(funzione,20);
}
}
function viewFoto(img){
largh=foto1.width+20;
altez=foto1.height+20;
stringa="width="+largh+",height="+altez;
finestra=window.open(img,"",stringa)
+"<a href='javascript:self.close()'><img src='"+img+"' width="+imgTmp.width+" height="+imgTmp.height+" border=0></a>";
}
</script>
//여기까지
186번줄에
<a href='<?=$list[$i][href]?>'>
를
<a href="javascript:CaricaFoto('<?=$list[$i][file_image1]?>')">
수정해 줍니다.
no_gd_gallery 목록 화면에서 새창 원본보기가 가능해 집니다.
만도님팁, 이전에 제가 올린글 현재 올린글 중 마음에 드시는걸
선택 하셔서 시도해 보시기 바랍니다. 그럼 ....
</script> 94번줄
// 이곳에 아래 소스를 삽입 합니다.
<style type="text/css">
//여기부터
<SCRIPT LANGUAGE="JavaScript">
function CaricaFoto(img){
foto1= new Image();
foto1.src=(img);
Controlla(img);
}
function Controlla(img){
if((foto1.width!=0)&&(foto1.height!=0)){
viewFoto(img);
}
else{
funzione="Controlla('"+img+"')";
intervallo=setTimeout(funzione,20);
}
}
function viewFoto(img){
largh=foto1.width+20;
altez=foto1.height+20;
stringa="width="+largh+",height="+altez;
finestra=window.open(img,"",stringa)
+"<a href='javascript:self.close()'><img src='"+img+"' width="+imgTmp.width+" height="+imgTmp.height+" border=0></a>";
}
</script>
//여기까지
186번줄에
<a href='<?=$list[$i][href]?>'>
를
<a href="javascript:CaricaFoto('<?=$list[$i][file_image1]?>')">
수정해 줍니다.
no_gd_gallery 목록 화면에서 새창 원본보기가 가능해 집니다.
만도님팁, 이전에 제가 올린글 현재 올린글 중 마음에 드시는걸
선택 하셔서 시도해 보시기 바랍니다. 그럼 ....
그누폴더/lib/gnuboard.lib.php 515번줄 (3.23 기준)
수정전:
if (preg_match($cfg[image_extension], $file))
return "<center><img src='./data/file/$board[bo_table]/$file' width='$width' height='$height' border=0></center><p>";
수정후:
if (preg_match($cfg[image_extension], $file))
return "<center><a href='javascript:void(0);' onclick=\"var win = window.open('', 'img', 'width=$source_width,height=$source_height'); win.document.write('<title>원 본 보 기</title>','<img src=./data/file/$board[bo_table]/$file onclick=window.close() style=position:absolute;top:0pt;left:0pt;cursor:hand;>');\">
<img src='./data/file/$board[bo_table]/$file' width='$width' height='$height' border=0 alt='새창열기'></a></center><p>";
로 해 주시면
http://www.dseps.co.kr/cjhp/gnu3/?doc=bbs/gnuboard.php&bo_table=bikenews&page=1&wr_id=113
의 형태로 새창 띄우기가 가능 합니다. 먼저번 에도 말씀 드렸지만
이 방식이 아니시라면 팁엔테크의 만도님 팁을 적용해 보시거나
만도님 혹은 적용을 하신 7쟁이님께 부탁을 해 보시기를 권해
드립니다.
수정전:
if (preg_match($cfg[image_extension], $file))
return "<center><img src='./data/file/$board[bo_table]/$file' width='$width' height='$height' border=0></center><p>";
수정후:
if (preg_match($cfg[image_extension], $file))
return "<center><a href='javascript:void(0);' onclick=\"var win = window.open('', 'img', 'width=$source_width,height=$source_height'); win.document.write('<title>원 본 보 기</title>','<img src=./data/file/$board[bo_table]/$file onclick=window.close() style=position:absolute;top:0pt;left:0pt;cursor:hand;>');\">
<img src='./data/file/$board[bo_table]/$file' width='$width' height='$height' border=0 alt='새창열기'></a></center><p>";
로 해 주시면
http://www.dseps.co.kr/cjhp/gnu3/?doc=bbs/gnuboard.php&bo_table=bikenews&page=1&wr_id=113
의 형태로 새창 띄우기가 가능 합니다. 먼저번 에도 말씀 드렸지만
이 방식이 아니시라면 팁엔테크의 만도님 팁을 적용해 보시거나
만도님 혹은 적용을 하신 7쟁이님께 부탁을 해 보시기를 권해
드립니다.