Ver Mensaje Individual
  #5 (permalink)  
Antiguo 31/03/2011, 15:37
Avatar de fmurga
fmurga
 
Fecha de Ingreso: abril-2008
Mensajes: 53
Antigüedad: 16 años
Puntos: 0
Respuesta: Menú PHP con CSS utilizando $checkit = $_SERVER['PHP_SELF'];

Hmm.... está devolviendo esto:

Código:
<li><a class="first" href="index.php" class="current active">Inicio</a></li>
pero necesito que el "class="current active" lo asigne a
Código:
<li>
Esta es la parte del CSS:

Código:
#header ul.menu ul {display:none; top:50px; position:absolute; background:#fff; padding:14px 0}
#header ul.menu li a {display:block ; font-size:16px; color:#000; font-family:Arial, Helvetica, sans-serif; font-weight:bold; padding:14px 0 20px  ; width:165px; text-align:center; text-decoration:none }
#header ul.menu li a:hover {color:#fff; background:url(../images/hover_bg.gif) repeat-x  0 0;  }
#header ul.menu li.current >  a {color:#fff; background:url(../images/hover_bg.gif) repeat-x  0 0;  }
#header .menu > li.active > a {color:#fff !important; background:url(../images/hover_bg.gif) repeat-x  0 0;  }