묻고답하기

ByKlein_chromeless 크롬리스 -_-; 받아서 쓰는데요

이 크롬리스는 -_- 창이 상항 위로 뜨더라구요...

홈페이지 구조상 팝업창을 쓰는데 크롬리스 창이 항상 위로 떠서요
다른 작은 하위 창들이 뒤로 밀려서 안보이네요 -_ㅜ

웹창을 항상위로 하는소스가 있나요!? 아니면 크롬리스를 항상위로 뜨지 않게 할 수 있을지?...

답변 좀 부탁 드립니다...
(아래는 크롬리스 JS파일 소스 예요)

////////////////////////////////////////////////////////////////
//                                                            //
//           BYKLEIN CHROMELESS WINDOW OBJECT 1.0             //
//             FOR MICROSOFT IEXPLORER 5.5 & UP               //
//                                                            //
//   (c) Copyright 2002. Mariano Klein || www.byklein.com     //
//         Distributed under the terms of the GNU GPL         //
//                                                            //
//    Thanks to Gabriel Suchowolski || www.microbians.com     //
////////////////////////////////////////////////////////////////

ChromelessWindow = function ()
{
        this.URL = null;
        this.title = null;
        this.titleFont = null;
        this.titleSize = 0;
        this.titleColor = null;
        this.titlebarImage = null;
        this.titlebarHeight = 0;
        this.scrollbars = null;
        this.w = 0;
        this.h = 0;
        this.centered = null;
        this.xPos = 0;
        this.yPos = 0;
        this.borderColor = null;
        this.borderSize = 0;
        this.closeBottom = null;
        this.minimizeBottom = null;
        
        this.chromelessCompatible = navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4 ? true:false;
        this.titlebarContent = null;
        this.chromelessWW = null;
        
        
}

ChromelessWindow.prototype.openChromeless = function()
{
        this.runCode();
        
}

ChromelessWindow.prototype.closeChromeless = function()
{
        this.chromelessWW.close();
}

ChromelessWindow.prototype.setURL = function(newURL)
{
        this.URL = newURL;
        if(this.chromelessWW)
        {
                this.chromelessWW.execScript("b.all.canvas.URL='"+newURL+"'");
                this.chromelessWW.execScript("showChromeless()");
        }
}

ChromelessWindow.prototype.moveTo = function()
{
        this.xPos = arguments[0];
        this.yPos = arguments[1];
        if(this.chromelessWW)
        {
                this.chromelessWW.execScript('var cx='+this.xPos+';');
                this.chromelessWW.execScript('var cy='+this.yPos+';');
                this.chromelessWW.execScript("showChromeless()");
        }
}

ChromelessWindow.prototype.resizeTo = function()
{
        this.w = arguments[0];
        this.h = arguments[1];
        this.cH = (this.h-this.titlebarHeight)-this.borderSize;
        this.cW = this.w -(this.borderSize*2);
        if(this.chromelessWW)
        {
                this.chromelessWW.execScript('var cw='+this.w+';');
                this.chromelessWW.execScript('var ch='+this.h+';');
                this.chromelessWW.execScript("b.all.canvas.style.width='"+this.cW+"'");
                this.chromelessWW.execScript("b.all.canvas.style.height='"+this.cH+"'");
                this.chromelessWW.execScript("b.all.closeBottom.style.right='"+this.borderSize+"'");
                this.chromelessWW.execScript("b.all.minimizeBottom.style.right='"+(this.borderSize+20)+"'");
                this.chromelessWW.execScript("showChromeless()");
        }
}



ChromelessWindow.prototype.runCode = function()
{
        if(this.centered=="yes")
        {
                var tempX = this.w;
                var tempY = this.h;
                this.xPos = (screen.availWidth/2)-(tempX/2);
                this.yPos = (screen.availHeight/2)-(tempY/2);
        }
        if (this.chromelessCompatible)
        {
                this.chromelessWW = window.open("about:blank","","top=5000,left=5000,width=100,height=100,scrollbars="+this.scrollbars);
        }
        else
        {
                this.chromelessWW = window.open(this.URL, "chromelessWindow", "top="+this.yPos+",left="+this.xPos+",width="+this.w+",height="+this.h+",toolbar=0,scrollbars="+this.scrollbars+",resizable=0");
        }
        this.cH = (this.h-this.titlebarHeight)-this.borderSize;
        this.cW = this.w -(this.borderSize*2);
        this.c = "<object type='text/html' border='0' style='position:absolute;z-index:2;top:"+this.titlebarHeight+"px;left:"+this.borderSize+"px;width:"+this.cW+"px;height:"+this.cH+"px;' data='"+this.URL+"' id='canvas'></object>";

        if((this.titlebarImage==undefined)||(this.titlebarImage==null)||(this.titlebarImage==""))
        {
                this.titlebarContent="";
                this.tb = false;
        }
        else
        {
                this.titlebarContent="<img id='menu' unselectable='on' src='"+this.titlebarImage+"' style='position:absolute; top:0px; left:0px;z-index:2'>";
                this.tb = true;
        }
        this.menu = "
                <div id='Title' unselectable='on' style='font-family:Arial;font-size:11px;font-weight:bold;position:absolute;top:5px;left:"+this.borderSize+"px;width:70%;height:15px;cursor:default;font-family:"+this.titleFont+";font-size:"+this.titleSize+";color:"+this.titleColor+";z-index:3'>"+this.title+"</div>
                <img id='closeBottom' unselectable='on' src='"+this.closeBottom+"' width='16' height='10' style='position:absolute; top:5px; right:"+(this.borderSize)+"px;z-index:3'>
                "+this.titlebarContent+"
                <img id='minimizeBottom' unselectable='on' src='"+this.minimizeBottom+"' width='16' height='10'+ '+ ' style='position:absolute; top:5px; right:"+(this.borderSize+20)+"px;z-index:3'>
                <div id='fondo' unselectable='on' style='position:absolute; top:0px; left:0px; width:100%; height:100%; background-color:"+this.borderColor+";z-index:1'></div>";

        if (this.chromelessCompatible)
        {
                this.chromelessWW.moveTo(300,-5000);
                this.chromelessWW.resizeTo(800,600);
                this.chromelessWW.document.writeln('<html>');
                this.chromelessWW.document.writeln('<head>');
                this.chromelessWW.document.writeln('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">');
                this.chromelessWW.document.writeln('<style>');
                this.chromelessWW.document.writeln('BODY{border:0px !important}');
                this.chromelessWW.document.writeln('</style>');
                this.chromelessWW.document.writeln('</head>');
                this.chromelessWW.document.writeln('<body>');
                this.chromelessWW.document.writeln('<script>'+ ');
                this.chromelessWW.document.writeln('var c=window.createPopup();');
                this.chromelessWW.document.writeln('var b=c.document.body;');
                this.chromelessWW.document.writeln("var ox=oy=ix=iy=0;");
                this.chromelessWW.document.writeln("var allContent =""+this.menu+this.c+"";");
                this.chromelessWW.document.writeln('b.innerHTML=allContent;'+ ');
                this.chromelessWW.document.writeln('var cx='+this.xPos+';');
                this.chromelessWW.document.writeln('var cy='+this.yPos+';');
                this.chromelessWW.document.writeln('var cw='+this.w+';');
                this.chromelessWW.document.writeln('var ch='+this.h+';');
                this.chromelessWW.document.writeln('function showChromeless(){');
                this.chromelessWW.document.writeln('c.show(cx,cy,cw,ch);focus()');
                this.chromelessWW.document.writeln('}');
                this.chromelessWW.document.writeln('var mm=false;');
                this.chromelessWW.document.writeln('var cmove=b.all("fondo");');
                this.chromelessWW.document.writeln('var allb=b.all("allborders");');
                this.chromelessWW.document.writeln('var cmove2=(b.all("menu"))?b.all("menu"):"";');
                this.chromelessWW.document.writeln('var ctitle=b.all("Title");');
                this.chromelessWW.document.writeln('ctitle.style.visibility=('+this.tb+')?"hidden":"visible";');
                this.chromelessWW.document.writeln('var cclose=b.all("closeBottom");');
                this.chromelessWW.document.writeln('var cminimize=b.all("minimizeBottom");');
                this.chromelessWW.document.writeln('cclose.onclick=function(){opener=self;self.close()};');
                this.chromelessWW.document.writeln('cminimize.onclick=function(){if(top.opener&&!top.opener.closed){top.opener.window.focus()};top.window.blur()};');
                this.chromelessWW.document.writeln('var ox=oy=ix=iy=0;');
                this.chromelessWW.document.writeln('var m=0;');
                this.chromelessWW.document.writeln('ctitle.onmousedown=function(){m=1};');
                this.chromelessWW.document.writeln('ctitle.onmouseup=function(){m=0};');
                this.chromelessWW.document.writeln('cmove.onmousedown=function(){m=1};');
                this.chromelessWW.document.writeln('cmove.onmouseup=function(){m=0};');
                this.chromelessWW.document.writeln('cmove2.onmousedown=function(){m=1};');
                this.chromelessWW.document.writeln('cmove2.onmouseup=function(){m=0};');
                this.chromelessWW.document.writeln('document.body.onclick=function(){ if (m) { focus();cx=ix+event.screenX-ox;cy=iy+event.screenY-oy;c.show(cx,cy,cw,ch) }else { ix=cx; iy=cy; ox=event.screenX; oy=event.screenY } };');
                this.chromelessWW.document.writeln('setInterval("document.body.click()",20);');
                this.chromelessWW.document.writeln('onfocus=function(){showChromeless();}');
                this.chromelessWW.document.writeln('</script>');
                this.chromelessWW.document.writeln('</body>');
                this.chromelessWW.document.writeln('</html>');
                this.chromelessWW.document.location.reload();
                this.chromelessWW.document.title = this.title;
                this.chromelessWW.execScript("focus();");
        }
        else
        {
                this.chromelessWW.document.title = this.title;
        }
}
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
용초딩 카톡 api 키를 받았는데 어디다가 삽입하나요? [5] 2015.02.11 by Double'U'
Blzi 홈페이지 백지 [5] 2015.02.11 by Blzi
xenewbie 웹사이트 이전과 데이터 이전 [4] 2015.02.11 by xenewbie
긍정소년 이미지가 깨지는데 다시 업로드를 어떻게 해야될지 모르겠어요 file  
선수 본문의 글쓰기에서 깨지고, 붙여 쓰기가 되지 않습니다 [1] 2015.02.11 by YJSoft
mango111 네이버 포토 에디터 서비스중지 [1] 2015.02.11 by YJSoft
선수 윈도우7에서 본문 글쓰기가 깨지고, 붙여 쓰기가 되지 않습니다 [1] 2015.02.11 by Luatic™
짱구삼촌 포토에디터 사용중단 되었는데 이미지업로드하면 어떻게 하나요?  
tnlch xe로 화상통화 사이트 제작이 가능한가요? [4] 2015.02.11 by tnlch
Intell 페이지 모듈 수정 시 적용이 안됩니다. file  
아리아리햇 결제대행사(PG사) 적용 경험이 있는 분들에게 여쭙니다. [7] 2015.02.11 by 숭숭군
몬치치 DB테이블은 어디에있나요 ㅜㅜㅜ [4] 2015.02.11 by 몬치치
richardhj 모바일에서 첨부파일과 메인화면오류 관련문의입니다. file  
1bobby xe member 테이블에서 extra_vars안에 __profile_image_exist로 프로필 이미지 출력 [4] 2015.02.11 by 1bobby
designare0 ssl 적용 질문 [2] 2015.02.11 by 휘즈
xenewbie 게시판 조회수 등 없애기 [4] file 2015.02.11 by xenewbie
나만의너 일부 회원은 쪽지 보내기가 안보인다고 하던데요... [5] 2015.02.11 by 퍼니엑스이
JerryGoldman 아이콘샵 모듈에 대해서 [1] file 2015.02.11 by 퍼니엑스이
수지니아빠 회원가입시 오류 ㅠㅠ 산넘어 산 [9] file 2015.02.11 by 수지니아빠
제발옴기자 레이아웃이 있는데 없다고 나옵니다. file  
벼리507 대시보드는 모바일에서 더 이상 활용 불가한가요? [7] 2015.02.11 by GG
JerryGoldman Please enter a value for Module Name? [4] file 2015.02.11 by 퍼니엑스이
꾸링 위젯 페이지 테두리 색상을 어떻게 변경하나요? [1] file 2015.02.11 by 퍼니엑스이
Hi_Roy XE 광장엔 왜 자유게시판이 없나요? ^^; [4] 2023.11.17 by KrteamENT
곰부인 게시판 스팸관련 [1] 2015.02.11 by JAY
I-JEX Sweet Mobile 레이아웃 질문이요  
능현 bxSlider,wowSlider,prettyPhoto,파일 가지고 계신분 도움 주세요 [2] 2015.02.11 by 능현
newi 동영상 섬네일 어떻게 가져 오나요 ???  
newi 분류 출력 소스 수정 좀.. [2] 2015.02.11 by newi
로자리아 이게 제이쿼리 충돌 문제인가요? [4] 2015.02.11 by 노에르