질문하나만요 ^^; 정보
질문하나만요 ^^;
본문
그누,영카 질문이 아니라 이 곳에 잠깐 씁니다. ^^;
다름이 아니라 플래시 롤링되는 배너에서 자바스크립트 새창을 뛰우는 방법이 있으면 답변좀 부탁드릴게요 ㅠㅠ
플래시 액션스크립트
//
link = new Array();
frameName = new Array();
//
numOfImage = 3;
// 이미지 개수
temp = 200;
// 이미지와 이미지 사이 세로간격
gap = 3000;
link[1] = "1";
link[2] = "2";
link[3] = "3 "; // 이 곳을 클릭 했을때 자바스크립트 새창을 띄울려고 합니다. ㅠㅠ
// 이미지(상품)의 링크주소
frameName[1] = "_self";
frameName[2] = "_self";
frameName[3] = "_self";
frameName[4] = "_self";
// 링크 페이지의 프레임네임
//
counter = random(numOfImage)+1;
imageSet._y = -(counter-1)*temp;
textSet._y = -(counter-1)*temp;
for (i=1; i<=numOfImage; i++) {
this[i].gotoAndStop(i);
// this[i].defaultY = this[i]._y;
imageSet[i]._y = (i-1)*temp;
imageSet[i].onRelease = this[i].onRelease=function () {
getURL(link[this._name], frameName[this._name]);
};
this[i].onRollOver = function() {
counter = Number(this._name);
clearInterval(interval);
};
this[i].onRollOut = this[i].onDragOut=function () {
interval = setInterval(fun1, gap);
};
this[i].onEnterFrame = function() {
if (counter == this._name) {
this.nextFrame();
} else {
this.prevFrame();
}
};
}
//
imageSet.onEnterFrame = function() {
this._y += (-(counter-1)*temp-this._y)/10;
};
interval = setInterval(fun1, gap);
function fun1() {
counter++;
if (counter == numOfImage+1) {
counter = 1;
}
}
이렇게 되어 있습니다.
html 페이지 코딩은 <script language="JavaScript">flashview('/main2009/swf/topRentCar.swf',240,200,'transparent');</script> 해놨어요
인스턴트네임은 btn3 입니다. 아시는 분 계시면 부탁드리겠습니다
다름이 아니라 플래시 롤링되는 배너에서 자바스크립트 새창을 뛰우는 방법이 있으면 답변좀 부탁드릴게요 ㅠㅠ
플래시 액션스크립트
//
link = new Array();
frameName = new Array();
//
numOfImage = 3;
// 이미지 개수
temp = 200;
// 이미지와 이미지 사이 세로간격
gap = 3000;
link[1] = "1";
link[2] = "2";
link[3] = "3 "; // 이 곳을 클릭 했을때 자바스크립트 새창을 띄울려고 합니다. ㅠㅠ
// 이미지(상품)의 링크주소
frameName[1] = "_self";
frameName[2] = "_self";
frameName[3] = "_self";
frameName[4] = "_self";
// 링크 페이지의 프레임네임
//
counter = random(numOfImage)+1;
imageSet._y = -(counter-1)*temp;
textSet._y = -(counter-1)*temp;
for (i=1; i<=numOfImage; i++) {
this[i].gotoAndStop(i);
// this[i].defaultY = this[i]._y;
imageSet[i]._y = (i-1)*temp;
imageSet[i].onRelease = this[i].onRelease=function () {
getURL(link[this._name], frameName[this._name]);
};
this[i].onRollOver = function() {
counter = Number(this._name);
clearInterval(interval);
};
this[i].onRollOut = this[i].onDragOut=function () {
interval = setInterval(fun1, gap);
};
this[i].onEnterFrame = function() {
if (counter == this._name) {
this.nextFrame();
} else {
this.prevFrame();
}
};
}
//
imageSet.onEnterFrame = function() {
this._y += (-(counter-1)*temp-this._y)/10;
};
interval = setInterval(fun1, gap);
function fun1() {
counter++;
if (counter == numOfImage+1) {
counter = 1;
}
}
이렇게 되어 있습니다.
html 페이지 코딩은 <script language="JavaScript">flashview('/main2009/swf/topRentCar.swf',240,200,'transparent');</script> 해놨어요
인스턴트네임은 btn3 입니다. 아시는 분 계시면 부탁드리겠습니다
댓글 전체
플래시는 단순히 _blank 로 넘기고 이벤트 발생시 onResize 로 했는데
뻘쭘해지네요 ㅡㅡ;;
좋은 방법 없나 모르겠네요 ㅠㅠ
뻘쭘해지네요 ㅡㅡ;;
좋은 방법 없나 모르겠네요 ㅠㅠ
"javascript:void (window.open('새로 뜨는 파일.html','new_win','width=700, height=700,left=150, top=10,toolbar=0, menubar=0, statusbar=0, scrollbar=1, resizable=0'))"
득템했습니다. 부모창 읍애버리고 새창만 띄우는겁니다. ㅋ
(데이터를 주고 받아야 하는거라면 문제가 있겠지만ㅋ 단순 팝업이니)
감사합니다.^^
(데이터를 주고 받아야 하는거라면 문제가 있겠지만ㅋ 단순 팝업이니)
감사합니다.^^