那也要看你addItem这个的函数啊

解决方案 »

  1.   

    function mtDropDown(oActuator, iDirection, iLeft, iTop, iReferencePoint, parentMenuSet) { this.addItem = addItem;
    this.addMenu = addMenu;
    this.toString = toString;
    this.initialize = initialize;
    this.isOpen = false;
    this.show = show;
    this.hide = hide;
    this.items = []; this.onactivate = new Function(); 
    this.ondeactivate = new Function(); 
    this.onmouseover = new Function(); 
    this.onqueue = new Function();  this.index = mtDropDown.registry.length;
    mtDropDown.registry[this.index] = this;
    var id = "mtDropDown" + this.index;
    var contentHeight = null;
    var contentWidth = null;
    var childMenuSet = null;
    var animating = false;
    var childMenus = [];
    var slideAccel = -1;
    var elmCache = null;
    var ready = false;
    var _this = this;
    var a = null;
    var pos = iDirection == mtDropDown.direction.down ? "top" : "left";
    var dim = null; function addItem(sText, sUrl) {
    var item = new mtDropDownItem(sText, sUrl, this);
    item._index = this.items.length;
    this.items[item._index] = item;
    } function addMenu(oMenuItem) {
    if (!oMenuItem.parentMenu == this) throw new Error("Cannot add a menu here");
    if (childMenuSet == null) childMenuSet = new mtDropDownSet(mtDropDown.direction.right, -5, 2, mtDropDown.reference.topRight);
    var m = childMenuSet.addMenu(oMenuItem);
    childMenus[oMenuItem._index] = m;
    m.onmouseover = child_mouseover;
    m.ondeactivate = child_deactivate;
    m.onqueue = child_queue;
    return m;
    }
      

  2.   

    menu3.addItem("卡信息查询", "javascript:changeTopArea('vipIntegral')"); javascript:changeTopArea('vipIntegral')")
    这是这一句啦