'새창자동'에 해당되는 글 1건

Posted on 2008/06/10 09:42
Filed Under Web(웹) Study/Java Script

<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

댓글을 달아 주세요

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

About

by 하늘이야기

Archive

Counter

· Total
: 1039972
· Today
: 283
· Yesterday
: 588
-->