묻고답하기

윈도우 형식 메뉴입니다.
+ -  폴더가 출력됩니다.  근데 처음에는 폴더만 출력되구요. 폴더아래 서브메뉴는 처음에 표기되지않습니다.
폴더클릭시 +가 -로 변하면서 아래로 서브메뉴가 윈도우 형식으로 출력됩니다.
여기서 제가 하고뿐질문은 노프레임시 새로고침을 해버리면 다시 폴더만 나와서 게시판은 그대로 있는데 메뉴만 제자리로 돌아가 사용자가 불편하것 같아 새로고침을 해도 사용자가 클릭해서 열었던 서브메뉴를 고정시키고 싶습니다.
고수님들 수고스럽더라도 다시 한번 공부한다치고 알려주십시오.
밝은 인터넷문화를 위해서~
아래는 소스입니다.


------------------menu1.js----------------------------------------------------------------------------------------

document.onmouseover = mOver ;
document.onmouseout = mOut ;

function mOver() {
        var eSrc = window.event.srcElement ;
        if (eSrc.className == "item") {
                window.event.srcElement.className = "highlight";
        }
}

function mOut() {
        var eSrc = window.event.srcElement ;
        if (eSrc.className == "highlight") {
                window.event.srcElement.className = "item";
        }
}


var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))?true:false;
ver4 = (NS4 || IE4) ? true : false;

isExpanded = false;

function getIndex($1) {
        ind = null;
        for (i=0; i<document.layers.length; i++) {
                whichEl = document.layers[i];
                if (whichEl.id == $1) {
                        ind = i;
                        break;
                }
        }
        return ind;
}

function arrange() {
        nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
        for (i=firstInd+1; i<document.layers.length; i++) {
                whichEl = document.layers[i];
                if (whichEl.visibility != "hide") {
                        whichEl.pageY = nextY;
                        nextY += whichEl.document.height;
                }
        }
}

function FolderInit(){
        if (NS4) {
        firstEl = "mParent";
        firstInd = getIndex(firstEl);
        showAll();
                for (i=0; i<document.layers.length; i++) {
                        whichEl = document.layers[i];
                        if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
                }
                arrange();
        }
        else {
                tempColl = document.all.tags("DIV");
                for (i=0; i<tempColl.length; i++) {
                        if (tempColl(i).className == "child") tempColl(i).style.display = "none";
                }
        }
}

function FolderExpand($1,$2) {
        if (!ver4) return;
        if (IE4) { ExpandIE($1,$2) }
        else { ExpandNS($1,$2) }
}

function ExpandIE($1,$2) {
        Expanda = eval($1 + "a");
        Expanda.blur()
        ExpandChild = eval($1 + "Child");
        if ($2 != "top") {
                ExpandTree = eval($1 + "Tree");
                ExpandFolder = eval($1 + "Folder");
        }
        if (ExpandChild.style.display == "none") {
                ExpandChild.style.display = "block";
                if ($2 != "top") {
                        if ($2 == "last") { ExpandTree.src = "./menu1/images/Lminus.gif"; }
                        else { ExpandTree.src = "./menu1/images/Tminus.gif"; }
                        ExpandFolder.src = "./menu1/images/openfoldericon.gif";        
                }
                else { mTree.src = "./menu1/images/topopen.gif"; }
        }
        else {
                ExpandChild.style.display = "none";
                if ($2 != "top") {
                        if ($2 == "last") { ExpandTree.src = "./menu1/images/Lplus.gif"; }
                        else { ExpandTree.src = "./menu1/images/Tplus.gif"; }
                        ExpandFolder.src = "./menu1/images/foldericon.gif";
                }
                else { mTree.src = "./menu1/images/top.gif"; }
        }
}
function ExpandNS($1,$2) {
        ExpandChild = eval("document." + $1 + "Child")
        if ($2 != "top") {
                ExpandTree = eval("document." + $1 + "Parent.document." + $1 + "Tree")
                ExpandFolder = eval("document." + $1 + "Parent.document." + $1 + "Folder")
        }        
        if (ExpandChild.visibility == "hide") {
                ExpandChild.visibility = "show";
                if ($2 != "top") {
                               if ($2 == "last") { ExpandTree.src = "./menu1/images/Lminus.gif"; }
                        else { ExpandTree.src = "./menu1/images/Tminus.gif"; }
                        ExpandFolder.src = "./menu1/images/openfoldericon.gif";        
                }
                else { mTree.src = "./menu1/images/topopen.gif"; }
        }
        else {
                ExpandChild.visibility = "hide";
                if ($2 != "top") {
                               if ($2 == "last") { ExpandTree.src = "./menu1/images/Lplus.gif"; }
                        else { ExpandTree.src = "./menu1/images/Tplus.gif"; }
                        ExpandFolder.src = "./menu1/images/foldericon.gif";        
                }
                else { mTree.src = "./menu1/images/top.gif"; }
        }
        arrange();
}

function showAll() {
        for (i=firstInd; i<document.layers.length; i++) {
                whichEl = document.layers[i];
                whichEl.visibility = "show";
        }
}


with (document) {
        write("<STYLE TYPE='text/css'>");
        if (NS4) {
                write(".parent { color: black; font-size:9pt; line-height:0pt; color:black; text-decoration:none; margin-top: 0px; margin-bottom: 0px; position:absolute; visibility:hidden }");
                write(".child { text-decoration:none; font-size:9pt; line-height:15pt; position:absolute }");
                write(".item { color: black; text-decoration:none }");
                write(".highlight { color: blue; text-decoration:none }");
        }
        else {
                write(".parent { font: 12px/13px; Times; text-decoration: none; color: black }");
                write(".child { font:12px/13px Times; display:none }");
                write(".item { color: black; text-decoration:none; cursor: hand }");
                write(".highlight { color: blue; text-decoration:none }");
                write(".icon { margin-right: 5 }")
        }
        write("</STYLE>");
}

onload = FolderInit;


-------------------------------------------------------------------------------------------------------------------------



-------------------------------------------------index.php---------------------------------------------------------------
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>메뉴수정</title>
<script language="javascript" src="./menu1/menu1.js"></script>
</head>
<body>
<div ID="mParent" class="parent">
생략
</div>
</body>
</html>



글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
브라운아이스 putty 수정문제 질문 [3] file 2014.04.28 by mAKEkr
박하향풍선껌 관리자 페이지 권한이 없다고 하네요 [3] 2014.04.28 by Double'U'
아웅졸려라 작성후 X일, X 시간, X분 , x초가 지났습니다 [2] 2014.04.28 by 아웅졸려라
휘빈a 홈페이지에 다음 뷰 를 달수 잇나요? [1] 2014.04.28 by Double'U'
루팡쿠팡 팀장닷컴 웹방화벽 사용해보신분? [4] 2014.04.28 by 루팡쿠팡
자야2 XE업그레이드시 주의해야할점좀 알려주세요. [3] 2014.04.28 by 자야2
콩까기 html에서 php파일 불러오는법! [8] 2014.04.28 by 콩까기
정창만 회원가입시나 수정시 닉네임/ID /E-mail 은 중복체크를 하자나요 . 이름도 가능할까요? [4] 2014.04.28 by 웹배우러왔습니다
루팡쿠팡 이런것도 있는데 이거 괜찮나요? [4] 2014.04.28 by 웹배우러왔습니다
웹배우러왔습니다 트래픽 질문이요 [2] 2014.04.28 by 웹배우러왔습니다
희망규짱 콘텐츠?샵? [1] 2014.04.28 by 로이조52
붐이에요 컴포지션 멀티미디어 경로썻는데.. file  
도나텔로 프레임(?) 홈페이지 나누는법..  
CN- embed 화이트리스트 추가 문제 [11] 2014.04.27 by 청소년출입가능지역의족장
CoffeeMix 서명 수정 할 때 글자 수 제한 방법 알고싶습니다.  
가르송 자료실에 부트스트랩  
쿨럭이 1.4 에서 1.7업뎃 후 속도가 확떨어지는 이유는 왜일까요? [16] 2014.04.27 by 銀童
Hikooooon 글을 입력할때 /xxx 를 입력하면 결과에서 해당되는 이모티콘이 대신 치환되도록 [2] 2014.04.27 by Hikooooon
JerryKim 토탈커맨더 쓰시는분 계신가요? [2] file 2014.04.27 by 청소년출입가능지역의족장
바가G 회원가입 확장모듈에서 나이제한 설정하는 방법이 이게 맞나요? [2] 2014.04.27 by 바가G