永发信息网

下面这段代码什么意思?请高手帮我翻译一下

答案:2  悬赏:40  手机版
解决时间 2021-08-01 13:20
  • 提问者网友:萌卜娃娃
  • 2021-07-31 16:00

function aa() {
for (i=1; i<=numOfMenu; i++) {
this["menu"+i].defaultX = this["menu"+i]._x;
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)], "");
};
this["menu"+i].onEnterFrame = function() {
if (over == Number(this._name.substr(4))) {
this.direction = "next";
this.nextFrame();
} else {
this.direction = "prev";
this.prevFrame();
}// end else if
};
}// end of for
}// End of the function
img_load.loadMovie("img.swf");
var startingN = int(P_Num)-1;
if (startingN == -1) {
startingN = 0;
}
// end if
var MC = loading.loadMovie("/swf/img_"+startingN+".swf");
link = new Array();
link[1] = "javascript:GoMenu(1,0,0);";
link[2] = "javascript:GoMenu(2,0,0);";
link[3] = "javascript:GoMenu(3,0,0);";
link[4] = "javascript:GoMenu(4,0,0);";
link[5] = "about.asp?ntype=迦拿安POCUS";
_global.sub_link_1_1 = "about.asp?ntype=迦拿安辣椒粉";
_global.sub_link_1_2 = "about.asp?ntype=盐渍辣椒";
_global.sub_link_1_3 = "about.asp?ntype=泡菜";

_global.sub_link_2_1 = "about.asp?ntype=VISION";
_global.sub_link_2_2 = "about.asp?ntype=董事长致辞";
_global.sub_link_2_3 = "about.asp?ntype=公司简历";
_global.sub_link_2_4 = "about.asp?ntype=INTERNATIO";
_global.sub_link_2_5 = "about.asp?ntype=联系地址";

_global.sub_link_3_1 = "about.asp?ntype=依赖性";
_global.sub_link_3_2 = "about.asp?ntype=特点";
_global.sub_link_3_3 = "about.asp?ntype=种植方法";
_global.sub_link_3_4 = "about.asp?ntype=无公害食品生产";

_global.sub_link_4_1 = "about.asp?ntype=辣椒种植";
_global.sub_link_4_2 = "about.asp?ntype=加工工艺";

_global.sub_link_5_1 = "javascript:GoMenu(5,1,0);";
_global.sub_link_5_2 = "javascript:GoMenu(5,2,0);";
_global.sub_link_5_3 = "javascript:GoMenu(5,3,0);";
numOfMenu = 5;
_global.over = active;
aa();

我在改一个FLASH导航通过,_global>sub_link_这些都是网页链接,我想在_global.sub_link_2_这栏下面再加一个二级栏目,怎么改?

最佳答案
  • 五星知识达人网友:动情书生
  • 2021-07-31 17:26
将指定菜单设为默认值
全部回答
  • 1楼网友:傲气稳了全场
  • 2021-07-31 17:59

这脚本代码,

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯