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

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

 2008-02-15 17:58:52 来源:WEB开发网   
核心提示:l.focusItem.style.zIndex = l.zIndex +1; l.Menu.hideChildMenu(l); } else { return; // not a menu - magic IE 4.5 mac happy doohicky.jba } window.Ac

    l.focusItem.style.zIndex = l.zIndex +1;
    l.Menu.hideChildMenu(l);
  } else {
    return; // not a menu - magic IE 4.5 mac happy doohicky. jba
  }
  window.ActiveMenuItem = l;
}

function onMenuItemAction(e, l) {
  l = window.ActiveMenuItem;
  if (!l) return;
  hideActiveMenus();
  if (l.action) {
    eval("" + l.action);
  }
  window.ActiveMenuItem = 0;
}

function FW_clearTimeout()
{
  if (fwHideMenuTimer) clearTimeout(fwHideMenuTimer);
  fwHideMenuTimer = null;
  fwDHFlag = false;
}
function FW_startTimeout()
{
  fwStart = new Date();
  fwDHFlag = true;
  fwHideMenuTimer = setTimeout("fwDoHide()", 1000);
}

function fwDoHide()
{
  if (!fwDHFlag) return;
  var elapsed = new Date() - fwStart;
  if (elapsed < 1000) {
    fwHideMenuTimer = setTimeout("fwDoHide()", 1100-elapsed);
    return;
  }
  fwDHFlag = false;
  hideActiveMenus();
  window.ActiveMenuItem = 0;
}

function FW_showMenu(menu, x, y, child) {
  if (!window.fwWroteMenu) return;
  FW_clearTimeout();
  if (document.layers) {
    if (menu) {
      var l = menu.menuLayer || menu;
      l.left = 1;
      l.top = 1;
      hideActiveMenus();
      if (this.visibility) l = this;
      window.ActiveMenu = l;
    } else {
      var l = child;
    }
    if (!l) return;
    for (var i=0; i<l.layers.length; i++) {         
      if (!l.layers[i].isHilite) 

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

Tags:BBS php mysql

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