묻고답하기

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


------------------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 남기남
루팡쿠팡 @이즈야 님! [8] 2014.04.26 by prologos
Luatic™ 1.7.3.6 -> 1.7.4.1 로 업데이트 후 문제 [2] 2014.04.26 by Luatic™
휘빈a 게시판 댓글이 펼침이 안되여  
슈팅1106 방명록 프로필 사진이 안뜨는데 왜 그런거죠..?ㅠㅠ  
휘빈a 게시판에댓글 쓸때 사진 나오방법은 어떻게 하나요  
비상교육 소셜 xe 직접 발행하기 [1] 2014.04.27 by sejin7940
CoffeeMix 게시판에서 글을 쓸 때 음악이나 동영상을 첨부해서 페이지에 삽입하면 에디터상에서 항상 작은사이즈로 보이게끔 수정하는법 알고싶습니다. file  
브라운아이스 스킨 변경 방법 -- 초보질문 ㅠ [7] 2014.04.27 by 브라운아이스
스밀걸 xe 페이지에 배경음악은 깔수 있나요?? [3] 2014.04.27 by sudesign
바보멍청이 갑자기 사이트가 확 느려졌습니다. [1] 2014.04.27 by sudesign
스밀걸 모바일 페이지가 짤립니다. 답변부탁드립니다. [2] file 2014.04.27 by 스밀걸
스케이트보드 새창 열기  
스밀걸 모바일용 사진 슬라이드 되는 위젯 있나요~?? [1] 2014.04.27 by Double'U'
휘빈a 페이스 북 글을 제 윕사이트에 가져 올수 잇나요? [1] 2014.04.27 by Double'U'
junnpark 게시판 수정 권한 문제 [3] 2014.04.27 by LI-NA
브라운아이스 현재 메뉴얼 pdf는 옛날 버전인거죠? [2] 2014.04.27 by 브라운아이스
모얼더 홈서버를 이용할때 어느쪽이 좋을까요 [1] 2014.04.27 by mAKEkr
ttt22 mid 숨기는 방법 [7] 2014.04.27 by 상자님
슈팅1106 신고 버튼 보이게 할려면 무슨 모듈을 받아야하나요??? [1] 2014.04.27 by 바가G
자극남 소속된 그룹들의 마크를 동시에 출력 하려면 어떻게 해야 할까요?  
슈팅1106 방명록에 관한것인데 좀 도와주세요ㅠㅠㅠㅠㅠㅠㅠ제발ㅠㅠㅠ [13] 2014.04.27 by 바가G
카논비 잘나오던 홈페이지가 며칠전부터 404 메세지와 함께 안됩니다. ㅠ_ㅠ  
iMatt 새 게시판에 데이터 이전하다 Fatal Error 났습니다. [3] 2014.04.27 by Hyomini
체다보이 로그인이 안됩니다.Fatal error: Call to a member function getAction() [3] 2014.04.27 by Hyomini
루팡쿠팡 회원가입시에 회원 가입 폼에서 "서명" 란이 안보입니다. [7] file 2014.04.27 by CoffeeMix
joorans 흐르는 텍스트 혹은 배너 이미지 file  
휘빈a 제 페이스북 연동된 글들이 이상하네요 [3] file 2014.04.27 by KrteamENT
한별아빠 로그인 전/후 메인페이지 변환 [1] 2014.04.27 by teguh100
브라운아이스 xe 모바일 홈피의 스킨 이름이 뭐에요? 저도 이것처럼 만들고 싶은데.. [2] 2014.04.27 by 도메인8295
KrteamENT HTML호출 문제인가요? [16] 2014.04.27 by KrteamENT