플래시메뉴에 팝업을 띄우려는데요... 정보
플래시메뉴에 팝업을 띄우려는데요...본문
플래시메뉴에서 자바스크립트로 팝업창을띄우려고합니다...
잘찾아바도 잘안됩니다.
어떠한명령어를 저야되는건가요???
link = new Array();
link[1] = "http://coumong.com/";
link[2] = "#";
link[3] = "http://coumong.com";
//link[3] = "http://coumong.com/?main=old&cateCode=14";
link[4] = "#";
link[5] = "javascript:pop_win();" 이부분입니다.
link[6] = "#";
link[7] = "http://coumong.com/?Pid=u04b04";
// 메인버튼 링크 주소
frame = new Array();
frame[1] = "_self";
frame[2] = "_self";
frame[3] = "_self";
frame[4] = "_self";
frame[5] = "_blank";
frame[6] = "_self";
frame[7] = "_self";
numOfMenu = 7;
// 메뉴 개수
_global.active = _root.pageNum;
// 현재 활성화된 메인버튼을 저장합니다.
// pageNum은 htm파일에서 지정됩니다.
_global.over = active;
function aa() {
for (i=1; i<=numOfMenu; i++) {
this["menu"+i].bg.gotoAndStop(i);
this["menu"+i].bg.onRollOver = function() {
_global.over = Number(this._parent._name.substr(4));
};
this["menu"+i].bg.onRollOut = this["menu"+i].bg.onDragOut=function () {
_global.over = active;
};
this["menu"+i].bg.onRelease = function() {
getURL(link[this._parent._name.substr(4)], frame[this._parent._name.substr(4)]);
// 메인버튼 링크
};
this["menu"+i].onEnterFrame = function() {
var temp1 = Number(this._name.substr(4));
if (over == temp1) {
this.direction = "next";
this.nextFrame();
} else {
this.direction = "prev";
this.prevFrame();
this.prevFrame();
}
};
}
}
aa();
잘찾아바도 잘안됩니다.
어떠한명령어를 저야되는건가요???
link = new Array();
link[1] = "http://coumong.com/";
link[2] = "#";
link[3] = "http://coumong.com";
//link[3] = "http://coumong.com/?main=old&cateCode=14";
link[4] = "#";
link[5] = "javascript:pop_win();" 이부분입니다.
link[6] = "#";
link[7] = "http://coumong.com/?Pid=u04b04";
// 메인버튼 링크 주소
frame = new Array();
frame[1] = "_self";
frame[2] = "_self";
frame[3] = "_self";
frame[4] = "_self";
frame[5] = "_blank";
frame[6] = "_self";
frame[7] = "_self";
numOfMenu = 7;
// 메뉴 개수
_global.active = _root.pageNum;
// 현재 활성화된 메인버튼을 저장합니다.
// pageNum은 htm파일에서 지정됩니다.
_global.over = active;
function aa() {
for (i=1; i<=numOfMenu; i++) {
this["menu"+i].bg.gotoAndStop(i);
this["menu"+i].bg.onRollOver = function() {
_global.over = Number(this._parent._name.substr(4));
};
this["menu"+i].bg.onRollOut = this["menu"+i].bg.onDragOut=function () {
_global.over = active;
};
this["menu"+i].bg.onRelease = function() {
getURL(link[this._parent._name.substr(4)], frame[this._parent._name.substr(4)]);
// 메인버튼 링크
};
this["menu"+i].onEnterFrame = function() {
var temp1 = Number(this._name.substr(4));
if (over == temp1) {
this.direction = "next";
this.nextFrame();
} else {
this.direction = "prev";
this.prevFrame();
this.prevFrame();
}
};
}
}
aa();
댓글 전체
현재 플래시swf파일이 들어가는 html코드에
팝업을 띄위기 위한 자바스크립트 pop_win() 함수가 있는지 확인해 보시기 바랍니다.
팝업을 띄위기 위한 자바스크립트 pop_win() 함수가 있는지 확인해 보시기 바랍니다.
trace(this._parent._name.substr(4))
어떻게 찍히나 보세요
5가 찍힌다면 자바스크립트 함수가 없는 것임
5가 아니면 다른것을 호출이겠죠
어떻게 찍히나 보세요
5가 찍힌다면 자바스크립트 함수가 없는 것임
5가 아니면 다른것을 호출이겠죠