티파니님 한번 봐주시겠습니까..플래시메뉴소스입니다. 정보
티파니님 한번 봐주시겠습니까..플래시메뉴소스입니다.본문
//메인에서 넘어갈 경우와 서브페이지에서 넘어 갈 경우의
//절대경로와 상대경로를 구분하기 위한 link변수 설정
if (route == 1) {
link = ".";
//메인으로 넘어갈 경우
} else {
link = "..";
//서브페이지에서 넘어갈 경우
}
// 메인메뉴 링크 설정
// 기존 메뉴에서 추가 할 때 배열을 추가 하지 않으면 해당 모션이 일어나지 않을 수 있습니다
// 메뉴추가 시에는 꼭 아래 링크를 추가해주세요
menu_on(pageNum);
mainMenu = [];
mainMenu[0] = "/intro/index.html";
mainMenu[1] = "/pro/index.html";
mainMenu[2] = "/herb01/index.html";
mainMenu[3] = "/herb02/index.html";
mainMenu[4] = "/board/index.html";
// 서브메뉴 링크 설정
subMenu = [];
for (var i = 0; i<mainMenu.length; i++) {
subMenu[i] = [];
}
// menu0의 서브메뉴 링크주소
subMenu[0][0] = "/intro/index.html";
subMenu[0][1] = "/intro/index.html";
subMenu[0][2] = "/intro/index.html";
subMenu[0][3] = "/intro/index.html";
subMenu[0][4] = "/intro/index.html";
subMenu[0][5] = "/intro/index.html";
subMenu[0][6] = "/intro/index.html";
// menu1의 서브메뉴 링크주소
subMenu[1][0] = "/bbs/bbs/board.php?bo_table=index01";
subMenu[1][1] = "/bbs/bbs/board.php?bo_table=index02";
subMenu[1][2] = "/bbs/bbs/board.php?bo_table=index03";
subMenu[1][3] = "/bbs/bbs/board.php?bo_table=index04";
subMenu[1][4] = "/bbs/bbs/board.php?bo_table=index05";
subMenu[1][5] = "/bbs/bbs/board.php?bo_table=index06";
subMenu[1][6] = "/pro/index.html";
// menu2의 서브메뉴 링크주소
subMenu[2][0] = "/herb01/index.html";
subMenu[2][1] = "/herb01/index.html";
subMenu[2][2] = "/herb01/index.html";
subMenu[2][3] = "/herb01/index.html";
subMenu[2][4] = "/herb01/index.html";
subMenu[2][5] = "/herb01/index.html";
subMenu[2][6] = "/herb01/index.html";
// menu3의 서브메뉴 링크주소
subMenu[3][0] = "/herb02/index.html";
subMenu[3][1] = "/herb02/index.html";
subMenu[3][2] = "/herb02/index.html";
subMenu[3][3] = "/herb02/index.html";
subMenu[3][4] = "/herb02/index.html";
subMenu[3][5] = "/herb02/index.htmlm";
subMenu[3][6] = "/herb02/index.html";
// menu4의 서브메뉴 링크주소
subMenu[4][0] = "/board/index.html";
subMenu[4][1] = "/board/index.html";
subMenu[4][2] = "/board/index.html";
subMenu[4][3] = "/board/index.html";
subMenu[4][4] = "/board/index.html";
subMenu[4][5] = "/board/index.html";
subMenu[4][6] = "/board/index.html";
//**************| 아래부터는 수정을 권장하지 않습니다 |*******************
MovieClip.prototype.xmove = function(speed, targetx) {
this._x += speed*(targetx-this._x);
};
for (var i = 0; i<mainMenu.length; i++) {
this["menu"+i].no = this["sub_bar"+i].no=this["bar"+i].no=i;
this["menu"+i].onRollOver = function() {
menu_on(this.no);
};
this["menu"+i].onRollOut = function() {
menu_off(this.no);
};
this["menu"+i].onRelease = function() {
getURL(link+mainMenu[this.no], "_self");
};
this["menu"+i].onEnterFrame = function() {
if (this.chk == true) {
this.nextFrame();
} else {
this.prevFrame();
}
};
this["sub_bar"+i].onEnterFrame = function() {
if (this.chk == true) {
this.nextFrame();
} else {
this.prevFrame();
}
};
}
function menu_on(num) {
this["menu"+num].chk = true;
this["sub_bar"+num].chk = true;
if (num != pageNum) {
this["menu"+pageNum].chk = false;
this["sub_bar"+pageNum].chk = false;
}
}
function menu_off(num) {
this["menu"+num].chk = false;
this["sub_bar"+num].chk = false;
menu_on(pageNum);
}
========================================================
여기서 해결법이 있다면 알려주십시요...
절대경로 바꾸는 방법이라던지요.;;;;
//절대경로와 상대경로를 구분하기 위한 link변수 설정
if (route == 1) {
link = ".";
//메인으로 넘어갈 경우
} else {
link = "..";
//서브페이지에서 넘어갈 경우
}
// 메인메뉴 링크 설정
// 기존 메뉴에서 추가 할 때 배열을 추가 하지 않으면 해당 모션이 일어나지 않을 수 있습니다
// 메뉴추가 시에는 꼭 아래 링크를 추가해주세요
menu_on(pageNum);
mainMenu = [];
mainMenu[0] = "/intro/index.html";
mainMenu[1] = "/pro/index.html";
mainMenu[2] = "/herb01/index.html";
mainMenu[3] = "/herb02/index.html";
mainMenu[4] = "/board/index.html";
// 서브메뉴 링크 설정
subMenu = [];
for (var i = 0; i<mainMenu.length; i++) {
subMenu[i] = [];
}
// menu0의 서브메뉴 링크주소
subMenu[0][0] = "/intro/index.html";
subMenu[0][1] = "/intro/index.html";
subMenu[0][2] = "/intro/index.html";
subMenu[0][3] = "/intro/index.html";
subMenu[0][4] = "/intro/index.html";
subMenu[0][5] = "/intro/index.html";
subMenu[0][6] = "/intro/index.html";
// menu1의 서브메뉴 링크주소
subMenu[1][0] = "/bbs/bbs/board.php?bo_table=index01";
subMenu[1][1] = "/bbs/bbs/board.php?bo_table=index02";
subMenu[1][2] = "/bbs/bbs/board.php?bo_table=index03";
subMenu[1][3] = "/bbs/bbs/board.php?bo_table=index04";
subMenu[1][4] = "/bbs/bbs/board.php?bo_table=index05";
subMenu[1][5] = "/bbs/bbs/board.php?bo_table=index06";
subMenu[1][6] = "/pro/index.html";
// menu2의 서브메뉴 링크주소
subMenu[2][0] = "/herb01/index.html";
subMenu[2][1] = "/herb01/index.html";
subMenu[2][2] = "/herb01/index.html";
subMenu[2][3] = "/herb01/index.html";
subMenu[2][4] = "/herb01/index.html";
subMenu[2][5] = "/herb01/index.html";
subMenu[2][6] = "/herb01/index.html";
// menu3의 서브메뉴 링크주소
subMenu[3][0] = "/herb02/index.html";
subMenu[3][1] = "/herb02/index.html";
subMenu[3][2] = "/herb02/index.html";
subMenu[3][3] = "/herb02/index.html";
subMenu[3][4] = "/herb02/index.html";
subMenu[3][5] = "/herb02/index.htmlm";
subMenu[3][6] = "/herb02/index.html";
// menu4의 서브메뉴 링크주소
subMenu[4][0] = "/board/index.html";
subMenu[4][1] = "/board/index.html";
subMenu[4][2] = "/board/index.html";
subMenu[4][3] = "/board/index.html";
subMenu[4][4] = "/board/index.html";
subMenu[4][5] = "/board/index.html";
subMenu[4][6] = "/board/index.html";
//**************| 아래부터는 수정을 권장하지 않습니다 |*******************
MovieClip.prototype.xmove = function(speed, targetx) {
this._x += speed*(targetx-this._x);
};
for (var i = 0; i<mainMenu.length; i++) {
this["menu"+i].no = this["sub_bar"+i].no=this["bar"+i].no=i;
this["menu"+i].onRollOver = function() {
menu_on(this.no);
};
this["menu"+i].onRollOut = function() {
menu_off(this.no);
};
this["menu"+i].onRelease = function() {
getURL(link+mainMenu[this.no], "_self");
};
this["menu"+i].onEnterFrame = function() {
if (this.chk == true) {
this.nextFrame();
} else {
this.prevFrame();
}
};
this["sub_bar"+i].onEnterFrame = function() {
if (this.chk == true) {
this.nextFrame();
} else {
this.prevFrame();
}
};
}
function menu_on(num) {
this["menu"+num].chk = true;
this["sub_bar"+num].chk = true;
if (num != pageNum) {
this["menu"+pageNum].chk = false;
this["sub_bar"+pageNum].chk = false;
}
}
function menu_off(num) {
this["menu"+num].chk = false;
this["sub_bar"+num].chk = false;
menu_on(pageNum);
}
========================================================
여기서 해결법이 있다면 알려주십시요...
절대경로 바꾸는 방법이라던지요.;;;;
댓글 전체
토르님, 죄송해요.
너무 늦게 게시물을 봤죠?
늦었지만 방금 쪽지를 보냈으니 한번 시도해 보시길 바랍니다.
너무 늦게 게시물을 봤죠?
늦었지만 방금 쪽지를 보냈으니 한번 시도해 보시길 바랍니다.