我下了个flash的导航,原本只有6.个按钮还有下拉式菜单.然后我在后面加了3.个也把里面该有的都改了,也加了.可就是显示不出来.我代码不知道是不是没改完,能否请哪位高手看看.
zurl = new Array();
zurl[1] = "#";
zurl[2] = "#";
zurl[3] = "#";
zurl[4] = "#";
zurl[5] = "#";
zurl[6] = "#";
zurl[7] = "#";
zurl[8] = "#";
zurl[9] = "#";
submenu = new Array();
submenu[1] = ["", "#", "#", "#"];
submenu[2] = ["", "#", "#", "#"];
submenu[3] = ["", "#", "#", "#"];
submenu[4] = ["", "#", "#", "#"];
submenu[5] = ["", "#", "#", "#"];
submenu[6] = ["", "#", "#", "#"];
submenu[7] = ["", "#", "#", "#"];
submenu[8] = ["", "#", "#", "#"];
submenu[9] = ["", "#", "#", "#"];
// -----------------------------------------------------------------------------------------------------------------
_root.menunum = 0;
_root.rollnum = _root.menunum;
link = function () { getURL(_root.zurl[this.num]);};
overs = function () { _root.rollnum = this.num;};
outs = function () { _root.rollnum = _root.menunum;};
for (i=1; i<=9; i++) {
_root["m"+i].num = i;
_root["m"+i].onRollOver = overs;
_root["m"+i].onRollOut = outs;
_root["m"+i].onRelease = link;
_root["sm"+i].num = i;
_root["sm"+i].sbar.onRollOver = function() {
_root.rollnum = this._parent.num;
};
_root["sm"+i].sbar.onRollOut = function() {
_root.rollnum = _root.menunum;
};
_root["sm"+i].onEnterFrame = function() {
if (_root.rollnum == this.num) {
this._y = 50;
} else {
this._y = 80;
}
};
for (j=1; j<=9; j++) {
_root["sm"+i]["sb"+j].tnum = j;
_root["sm"+i]["sb"+j].onRollOver = function() {
_root.rollnum = this._parent.num;
};
_root["sm"+i]["sb"+j].onRollOut = function() {
_root.rollnum = _root.menunum;
};
_root["sm"+i]["sb"+j].onRelease = function() {
getURL(_root.submenu[this._parent.num][this.tnum]);
};
}
}