脚本代码如下:谁能帮看一下
sub.gotoAndStop(this._name);
myURL = [["category1.htm", "category1.htm", "category1.htm", "category1.htm"],
["category2.htm", "category2.htm", "category2.htm"],
["category3.htm", "category3.htm", "category3.htm", "category3.htm"],
["category4.htm", "category4.htm"],
["category5.htm", "category5.htm"]];
for (i=1; i<=myURL[this._name-1].length; i++) {
sub[i].onRollOver = function() {
_global.over = this._parent._parent._name;
};
sub[i].onRollOut = sub[i].onDragOut=function () {
_global.over = active;
};
sub[i].onRelease = function() {
getURL(myURL[this._parent._parent._name-1][this._name-1], "_self");
};
}
subBg.gotoAndStop(this._name);
subBg.useHandCursor = 0;
subBg.onRollOver = function() {
_global.over = this._parent._name;
};
subBg.onRollOut = subBg.onDragOut=function () {
_global.over = active;
};