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

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

 2008-02-15 17:58:52 来源:WEB开发网   
核心提示:s.height = s.pixelHeight = menu.menuHeight + menu.menuBorder; s.width = s.pixelWidth = menu.menuItemWidth + menu.menuBorder; s.backgroundColor = menu.bgColor; s

      s.height = s.pixelHeight = menu.menuHeight + menu.menuBorder;
      s.width = s.pixelWidth = menu.menuItemWidth + menu.menuBorder;
      s.backgroundColor = menu.bgColor;

      s = menuLayer.style;
      s.width = s.pixelWidth = menu.menuItemWidth + (menu.menuBorder * 4);
      s.height = s.pixelHeight = menu.menuHeight+(menu.menuBorder*4);
    }
  }
  if (document.captureEvents) {   
    document.captureEvents(Event.MOUSEUP);
  }
  if (document.addEventListener) {   
    document.addEventListener("mouseup", onMenuItemOver, false);
  }
  if (document.layers && window.innerWidth) {
    window.onresize = NS4resize;
    window.NS4sIW = window.innerWidth;
    window.NS4sIH = window.innerHeight;
  }
  document.onmouseup = mouseupMenu;
  window.fwWroteMenu = true;
  status = "";
}

function NS4resize() {
  if (NS4sIW < window.innerWidth || 
    NS4sIW > window.innerWidth || 
    NS4sIH > window.innerHeight || 
    NS4sIH < window.innerHeight ) 
  {
    window.location.reload();
  }
}

function onMenuItemOver(e, l) {
  FW_clearTimeout();
  l = l || this;
  a = window.ActiveMenuItem;
  if (document.layers) {
    if (a) {
      a.document.bgColor = a.saveColor;
      if (a.hilite) a.hilite.visibility = "hidden";
      if (a.Menu.bgImageOver) {
        a.background.src = a.Menu.bgImageUp;
      }

上一页  1 2 3 4 5 6 7 8 9 10  下一页

Tags:BBS php mysql

编辑录入:coldstar [复制链接] [打 印]
赞助商链接