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

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

 2008-02-15 17:58:52 来源:WEB开发网   
核心提示:var s = l.style; s.visibility = "inherit"; if (x != "relative")s.left = s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0; i

    var s = l.style;
    s.visibility = "inherit";
    if (x != "relative") 
      s.left = s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
    if (y != "relative") 
      s.top = s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
    l.Menu.xOffset = document.body.scrollLeft;
    l.Menu.yOffset = document.body.scrollTop;
  }
  if (menu) {
    window.activeMenus[window.activeMenus.length] = l;
  }
}

function onMenuItemDown(e, l) {
  var a = window.ActiveMenuItem;
  if (document.layers) {
    if (a) {
      a.eX = e.pageX;
      a.eY = e.pageY;
      a.clicked = true;
    }
  }
}

function mouseupMenu(e)
{
  hideMenu(true, e);
  hideActiveMenus();
  return true;
}

function mouseoutMenu()
{
  hideMenu(false, false);
  return true;
}


function hideMenu(mouseup, e) {
  var a = window.ActiveMenuItem;
  if (a && document.layers) {
    a.document.bgColor = a.saveColor;
    a.focusItem.top = -30;
    if (a.hilite) a.hilite.visibility = "hidden";
    if (mouseup && a.action && a.clicked && window.ActiveMenu) {
       if (a.eX <= e.pageX+15 && a.eX >= e.pageX-15 && a.eY <= e.pageY+10 && a.eY >= e.pageY-10) {
        setTimeout('window.ActiveMenu.Menu.onMenuItemAction();', 2);
      }
    }
    a.clicked = false;
    if (a.Menu.bgImageOver) {
      a.background.src = a.Menu.bgImageUp;

上一页  4 5 6 7 8 9 10 11 12  下一页

Tags:BBS php mysql

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