묻고답하기

지금 아래소스는 제로님이 만든 seletbox.js 파일인데요,,
이것은 항상 본 페이지로만 뜨거든요
자바스크립트자체를 잘 몰라서 그러는데..

누구 이걸 항상 새창으로 뜨게좀 바꾸어 주세요,,

==================================================================
function printZSelectBox(selectBox,option) {
        var tmp, name, value, outString, action;
        var id = selectBox["id"];
        var width = selectBox["width"];
        var height = selectBox["height"];
        var bordercolor = selectBox["bordercolor"];
        var bgcolor = selectBox["bgcolor"];
        var fontcolor = selectBox["fontcolor"];
        var focusbgcolor = selectBox["focusbgcolor"];
        var fontsize = selectBox["fontsize"];
        var padding = selectBox["padding"];
        var bullet = selectBox["bullet"];
        var onChange = selectBox["onChange"];
        var select = option["select"];

        if(bordercolor==null) bordercolor = "#888888";
        if(bgcolor==null) bgcolor= "#ffffff";
        if(fontcolor==null) fontcolor="#333333";
        if(focusbgcolor==null) focusbgcolor= "#ededed";
        if(width==null) width=100;
        if(height!=null) height="height="+height; else height = "";
        if(fontsize==null) fontsize="9";
        if(padding==null) padding="1";
        if(bullet==null) bullet="▽";

        outString = "<input type=hidden name='"+id+"'>";
        outString += "<table width="+width+" "+height+" border=0 cellspacing=1 cellpadding=0 bgcolor="+bordercolor+" style='table-layout:fixed;cursor:hand' onClick="showZSelectBox('layer_"+id+"')">n";
        outString += "<tr bgcolor="+bgcolor+">n";
        outString += "<td>n";
        outString += "<table border=0 width=100% height=100% cellspacing=0 cellpadding="+padding+" style='table-layout:fixed;'>n";
        outString += "<col width=></col><col width=15></col>n";
        outString += "<tr>n";
        outString += "<td style='line-height:100%;padding-top:3px;padding-left:3px;' onMouseOver=this.style.backgroundColor='"+focusbgcolor+"' onMouseOut=this.style.backgroundColor=''><div id="+id+"_value style=color:"+fontcolor+";font-size:"+fontsize+"pt;>Select</div></td>n";
        outString += "<td style='font-size:"+fontsize+"pt;padding:0px;color:"+fontcolor+";' align=center>"+bullet+"</td>n";
        outString += "</tr>n";
        outString += "</table>n";
        outString += "</td>n";
        outString += "</tr>n";
        outString += "</table>n";

        outString += "<div id='layer_"+id+"' style='z-index:100; position:absolute; visibility:hidden' onMouseOver=showZSelectBox('layer_"+id+"') onMouseOut=hideZSelectBox('layer_"+id+"')>n";
        outString += "<table border=0 cellspacing=0 cellpadding=0 height=2><tr><td></td></tr></table><table border=0 cellspacing=1 cellpadding=0 bgcolor="+bordercolor+" width="+width+">n";
        outString += "<tr bgcolor="+bgcolor+">n";
        outString += "<td>n";
        outString += "<table border=0 cellspacing=0 cellpadding=0 width=100% style=table-layout:fixed>n";
        outString += "<col style=padding-left:3px;font-size:"+fontsize+"pt;color:"+fontcolor+" width=></col>n";
        for(i=0;i<option.length;i++) {
                tmp = option[i].split(",");
                name = tmp[0];
                value = tmp[1];
                if(value==null) value = "";
                if(onChange!=null&&value) action= "location.href=""+value+""";
                else action = ""selectZSelectBox('"+name+"','"+value+"','"+id+"')"";
                outString += "<tr onMouseOver=this.style.backgroundColor='"+focusbgcolor+"' onMouseOut=this.style.backgroundColor='' style=cursor:hand><td onClick="+action+" style='padding-top:1px;font-size:"+fontsize+"pt;color:"+fontcolor+"'>"+name+"</td></tr>n";
        }
        
        outString += "</table>n";
        outString += "</td>n";
        outString += "</tr>n";
        outString += "</table>n";
        outString += "</div>n";
        document.writeln(outString);

        if(select!=null) {
                tmp = option[select].split(",");
                name = tmp[0];
                value = tmp[1];
                if(value==null) value = "";
                document.all[id+"_value"].innerHTML = name;
                document.all[id].value = value;
        }
}

function showZSelectBox(id) {
        document.all[id].style.visibility = '';
}

function hideZSelectBox(id) {
        document.all[id].style.visibility = 'hidden';
}

function selectZSelectBox(name,value,id) {
        document.all[id+"_value"].innerHTML = name;
        document.all[id].value=value;
        document.all["layer_"+id].style.visibility = 'hidden';
}
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
CityBoys-Life 회원데이터 비디에의 필드값중? [1] 2007.08.10
KOF초고수 소스보기 질문입니다. [1] 2007.08.10
박종근 원프레임이 잘 안되어서.. [1] 2007.08.10
정수용 ifram 테두리 두께와 색상 조절 할 수 있나요? [2] 2007.08.10
황호석 클릭시 창닫기버튼, 로케이션 없는 창열기버튼 어케하는지..  
ⓩero 제로보드처럼 Channel 설정하는 방법;  
won 하나로 이밸리, 한국통신 ADSL 이것들로 리눅스에서 인터넷 하는 방법좀... [1] 2007.08.10
won 리눅스 인터넷 공유 방법좀... [2] 2007.08.10
Kwas 플로피 복사 법을 알고 싶습니다. [2] 2007.08.10
caramelkiss 플래쉬 외부에서 내부로 변수값 전달 방법 좀.... [3] 2007.08.10
박호석 질문드립니다~ 플래시+노프레임 ? [1] 2007.08.10
박득환 [왕무식 질문] DB의 값을 읽어오는데 엔터없이 글이 다 붙어서 불려와요 [4] 2007.08.10
강가딘 [php] [javascript] 변수에 값이 입력되지 않습니다. [2] 2007.08.10
송주희 인터넷 화면이 쫙~ 늘어져서 보이는데여.. 이게 무슨문제인가여? [사진첨부] [2] 2007.08.10
장영조 동영상을 제어하는 스크립트 좀 알려주십시요  
심바 아파치와 PHP에대해서,., [1] 2007.08.10
심바 서버에서,,,트리구조변경에 대하여,,,급합니다...부탁드립니다.. [1] 2007.08.10
JNK php로 noframe 만들기에 대해... [1] 2007.08.10
ppond03 급한 질문입니다... [1] 2007.08.10
안재홍 반대쪽 프레임을 새로고침하려고 하는데요~ [1] 2007.08.10
김윤희 <div></div> 사이에 <iframe> 처럼 input.html 혹은 input.php 파일을.. [1] 2007.08.10
김종선 [php] header와 footer가 뜨질않습니다.  
수프맨 셀 높이 조절이 안되요. (그림파일첨부) [1] 2007.08.10
박성오 img src 태그 사용시 문제가 생겨서 질문합니다. [1] 2007.08.10
유메미루 새창으로만 띄우고 싶은데..  
이영환 제컴에서 홈피돌리는데 문제가 외부접속.... [3] 2007.08.10
유형선 포토샵 저장관련 질문입니다 [1] 2007.08.10
박수빈 PSD 수정 관련 질문! [2] 2007.08.10
박혜정 모든게시판을 한곳에서만 띄우게 하는 방법을.. [1] 2007.08.10
임인섭 노프레임에 대해 완전 초보인데요. [1] 2007.08.10