묻고답하기
플래쉬 링크 관련해서 질문드립니다;;
2010.07.06 03:13
사진세장이 번갈아서 돌아가고 링크가 되는건데
설정을 _self로 수정해도 새창으로 열리네요
어디가 잘못된건지 잘 모르겠는데 좀 봐주세요 ㅠ_ㅠ
function aa()
{
if (over == numOfMenu)
{
_global.over = 1;
}
else
{
++_global.over;
} // end else if
} // End of the function
link = new Array();
link[1] = "/front/php/category.php?cate_no=27 ";
link[2] = "/front/php/category.php?cate_no=31 ";
link[3] = "/front/php/category.php?cate_no=24&main_cate_no=24&display_group=1";
frame = new Array();
frame[1] = "_self";
frame[2] = "_self";
frame[3] = "_self";
numOfMenu = 3;
gap = 3000;
for (i = 1; i <= 5; i++)
{
this["motion" + i].onRelease = function ()
{
getURL("link[this._name.substr(-1)], frame[this._name.substr(-1)]);
};
} // end of for
_global.over = random(4) + 1;
for (i = 1; i <= numOfMenu; i++)
{
this["m" + i].bg = this["m" + i].bg;
this["m" + i].bg.onRollOver = function ()
{
_global.over = this._parent._name.substr(-1);
clearInterval(id);
};
this["m" + i].bg.onRollOut = this["m" + i].bg.onDragOut = function ()
{
id = setInterval(aa, gap);
};
this["m" + i].bg.onRelease = function ()
{
getURL("link[this._parent._name.substr(-1)], frame[this._parent._name.substr(-1)]);
};
this["m" + i].onEnterFrame = function ()
{
if (over == this._name.substr(-1))
{
this.nextFrame();
this._parent["motion" + this._name.substr(-1)].nextFrame();
}
else
{
this.prevFrame();
this._parent["motion" + this._name.substr(-1)].prevFrame();
} // end else if
};
} // end of for
id = setInterval(aa, gap);