묻고답하기

지금 아래소스는 제로님이 만든 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 남기남
fbkjasfa 서버 2012에서 설치하면 500에러 fastcgi 오류가 뜹니다. [1] 2014.07.03 by Gunmania
웜블 default레이아웃 메뉴관련 질문드립니다!  
glaalswl 모바일 레이아웃 적용중입니다.. 근데 글등록이나 삭제가 안되서요.... [9] 2014.07.03 by 멘탈가루루루루몬
geogeo123 bootstrap-3.2.0-dist 를 깔고 싶은데요.. [5] 2014.07.03 by lamb91
geogeo123 애드센스 모바일에서도 pc 형 광고 사이즈로 나오는데 해결방법좀 부탁드립니다. [8] 2014.07.03 by geogeo123
우소영134 모바일 관리자 접속에서  
모해 모바일에서 리미지 리사이즈 관련 질문드립니다 [4] 2014.07.03 by 모해
이선아362 글쓰기 submit 관련 태그 변경이 가능할까요? [4] 2014.07.03 by 이선아362
익스트리머01 댓글 달기가 안됩니다. 도와주세요 file  
샘572 갑자기 페이지를 찾을 수 없다는 오류가 나요ㅠㅠ 有 file  
jkx08q 자기소개 위젯? [6] 2014.07.03 by 시니시즘
안엉어웅넌223 캡차가 클릭이 안되요 [4] 2014.07.03 by 안엉어웅넌223
지원필요 다운로드 랭킹위젯 글씨크기줄이기 file  
layla1017 위젯페이지에 내용을 넣고싶습니다. [1] 2014.07.03 by Double'U'
스_륵 페이지 수정에서 [1] file 2014.07.03 by 시니시즘
geogeo123 깃허브에 있는것들.. 설치하고 싶으면 어떻게 해야하나요? [3] 2014.07.03 by 시니시즘
컴돌이~ 회원가입폼 전화번호항목에 숫자만 입력.. [1] 2014.07.03 by 시니시즘
풀카운트 게시판 생성을 할 수가 없습니다.. [4] file 2014.07.03 by 장_앙마
paulking2 지식인에서 비밀글 답변도 가능하게 하고싶습니다 아시는분 답변좀 해주심감사할게요 ㅜㅜ  
제이니스 메뉴의 new아이콘 앞에오게 하려면~~? [1] 2014.07.03 by DoorWeb