1459

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

· 2005-10-20 (목) 17:55:49 · 2099
안녕하세요.
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에 열리게 할수없나요.
가로세로비율까지맞춰주면 더욱좋겠구요.
안되면 스크롤바있어도 괞잖은데 현재는 전체창으로 뜨네요.
|
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

9,564건
+
제목 글쓴이 날짜 조회
05-10-27 조회 1,703
05-10-27 조회 2,171
05-10-27 조회 1,896
05-10-26 조회 1,907
05-10-25 조회 1,936
05-10-25 조회 1,849
05-10-25 조회 1,866
05-10-25 조회 2,175
05-10-23 조회 1,899
05-10-22 조회 1,885
05-10-21 조회 2,033
05-10-21 조회 1,801
05-10-21 조회 2,362
05-10-20 조회 2,100
05-10-20 조회 2,049
05-10-19 조회 2,282
05-10-18 조회 1,928
05-10-18 조회 1,901
05-10-18 조회 2,335
05-10-17 조회 1,953