'화면중앙'에 해당되는 글 1건

  1. 2008/06/10 새창자동으로 띄우고 화면중앙정렬

<script language="javascript">
<!--
//팝업윈도우, 스크린 중앙에 위치, 다중 오픈 방지
var winname_1;
var openF = 0;
function popup(fileName, intWidth, intHeight, intLeft, intTop, vScrollbars, vResizable, vStatus){
        today = new Date();
        winName = today.getTime();

        var fileName, intWidth, intHeight;
        var screenWidth = screen.availwidth;
        var screenHeight = screen.availheight;

        if(intWidth >= screenWidth){ //스크린 상태에 따라 스크롤바 자동표시
                intWidth = screenWidth - 40;
                vScrollbars = 1;
        }
        if(intHeight >= screenHeight){ //스크린 상태에 따라 스크롤바 자동표시
                intHeight = screenHeight - 40;
                intWidth = intWidth + 20;
                vScrollbars = 1;
        }
        if(intLeft == 'auto' || intTop == 'auto'){ //스크린 중앙에 위치 시키기
                var intLeft = (screenWidth - intWidth) / 2;
                var intTop = (screenHeight - intHeight / 2;
        }
        var features = eval("'width=" + intWidth + ",height=" + intHeight + ",left=" + intLeft + ",top=" + intTop + ",scrollbars=" + vScrollbars + ",resizable=" + vResizable + ",status=" + vStatus + "'");
        if(openF == 1){
                if(winname_1.closed){
                        winname_1 = window.open(fileName,winName,features);
                }else{
                        winname_1.close();
                        winname_1 = window.open(fileName,winName,features);
                }
        }else{
                winname_1 = window.open(fileName,winName,features);
                openF = 1;
        }
        winname_1.focus();
}
//-->
</script>
<style type="text/css">


<body onload="popup('http://blog4u.kr','1024','668','auto','auto','0','0','0');" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">

<a href="javascript:popup('http://blog4u.kr','1024','668','auto','auto','0','0','0')"," onFocus="this.blur();">

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2008/06/10 09:42 2008/06/10 09:42

댓글을 달아 주세요

[로그인][오픈아이디란?]

1 

달력

«   2010/03   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

카테고리

전체 (577)
My Story (47)
My Project List (8)
세상을 바라보다. (158)
Web(웹)표준 신기술 (37)
Web(웹) Study (154)
데이터베이스 Study (10)
공부 해 Boa요. (31)
IT트랜드 & 정보 (64)
문. 화. 생. 활. (14)
DSLR과 함께하기 (9)
스크랩 정보들 (10)
이야기 광장 (18)
레크레이션 (17)

archive