开发学院WEB开发PHP BBS(php & mysql)完整版(六) 阅读

BBS(php & mysql)完整版(六)

 2008-02-15 17:58:52 来源:WEB开发网   
核心提示:var s = menuLayer.style; s.top = s.pixelTop = -300; s.left = s.pixelLeft = -300; var menu = container.menus[x]; menu.menuItemWidth = menu.menuWidth || menu.menu

      var s = menuLayer.style;
      s.top = s.pixelTop = -300;
      s.left = s.pixelLeft = -300;

      var menu = container.menus[x];
      menu.menuItemWidth = menu.menuWidth || menu.menuIEWidth || 140;
      menuLayer.style.backgroundColor = menu.menuBorderBgColor;
      var top = 0;
      for (var i=0; i<container.menus[x].items.length; i++) {
        var l = FIND("menuItem" + menuCount);
        l.Menu = container.menus[x];
        if (l.addEventListener) { // ns6
          l.style.width = menu.menuItemWidth;   
          l.style.height = menu.menuItemHeight;
          l.style.top = top;
          l.addEventListener("mouseover", onMenuItemOver, false);
          l.addEventListener("click", onMenuItemAction, false);
          l.addEventListener("mouseout", mouseoutMenu, false);
        } else { //ie
          l.style.pixelWidth = menu.menuItemWidth;   
          l.style.pixelHeight = menu.menuItemHeight;
          l.style.pixelTop = top;
        }
        top = top + menu.menuItemHeight+menu.menuItemBorder;

上一页  1 2 3 4 5 6 7  下一页

Tags:BBS php mysql

编辑录入:coldstar [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接