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

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

 2008-02-15 17:58:52 来源:WEB开发网   
核心提示:} } else if (window.ActiveMenu && FIND("menuItem0")) { if (a) { a.style.backgroundColor = a.saveColor; if (a.hilite) a.hilite.styl

    }
  } else if (window.ActiveMenu && FIND("menuItem0")) {
    if (a) {
      a.style.backgroundColor = a.saveColor;
      if (a.hilite) a.hilite.style.visibility = "hidden";
      if (a.Menu.bgImageUp) {
        a.style.background = "url(" + a.Menu.bgImageUp +")";;
      }
    }
  }
  if (!mouseup && window.ActiveMenu) {
    if (window.ActiveMenu.Menu) {
      if (window.ActiveMenu.Menu.hideOnMouseOut) {
        FW_startTimeout();
      }
      return(true);
    }
  }
  return(true);
}

function PxToNum(pxStr)
{ // pxStr == 27px, we want 27.
  if (pxStr.length > 2) {
    n = Number(pxStr.substr(0, pxStr.length-2));
    return(n);
  }
  return(0);
}

function hideChildMenu(hcmLayer) {
  FW_clearTimeout();
  var l = hcmLayer;
  for (var i=0; i < l.Menu.childMenus.length; i++) {
    var theLayer = l.Menu.childMenus[i];
    if (document.layers) {
      theLayer.visibility = "hidden";
    } else {
      theLayer = FIND(theLayer);
      theLayer.style.visibility = "hidden";
    }
    theLayer.Menu.hideChildMenu(theLayer);
  }

  if (l.childMenu) {
    var childMenu = l.childMenu;
    if (document.layers) {
      l.Menu.FW_showMenu(null,null,null,childMenu.layers[0]);

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

Tags:BBS php mysql

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