1459

이미지클릭하면열리는이미지크기조정문제입니다.

· 20년 전 · 1965
안녕하세요.
gbview.skin.php에있는 자바스크립트부분입니다.
<SCRIPT LANGUAGE='JavaScript'>
<!--
var win= null;
function center_window(img, w, h)
{
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/3;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars=yes,';
settings +='resizable=no,';
settings +='status=no';

win=window.open("","newWindow",settings);
win.document.open();
win.document.write ("<html><head><title>이미지 보기</title></head>");
win.document.write ("<body leftmargin=0 topmargin=0>");
win.document.write ("<img src='"+img+"' border=0 onclick='window.close();' style='cursor:hand' title='클릭하면 닫혀요'>");
win.document.write ("</body></html>");
win.document.close();

if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
//-->
</SCRIPT>
여기에서
이미지클릭하면 고정된크기로 열리게 하고싶은데 어떻게 하는지를 몰라서요.
원하는건 클릭하면 가로400*400에 열리게 할수없나요.
가로세로비율까지맞춰주면 더욱좋겠구요.
안되면 스크롤바있어도 &#44318;잖은데 현재는 전체창으로 뜨네요.
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
20년 전 조회 1,810
20년 전 조회 1,719
20년 전 조회 1,754
20년 전 조회 2,037
20년 전 조회 1,761
20년 전 조회 1,756
20년 전 조회 1,907
20년 전 조회 1,663
20년 전 조회 2,216
20년 전 조회 1,966
20년 전 조회 1,927
20년 전 조회 2,141
20년 전 조회 1,802
20년 전 조회 1,773
20년 전 조회 2,196
20년 전 조회 1,819
20년 전 조회 1,681
20년 전 조회 1,666
20년 전 조회 1,740
20년 전 조회 1,845
🐛 버그신고