Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/01/2008, 15:35
Avatar de lucasan
lucasan
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: Cali - Colombia
Mensajes: 1.144
Antigüedad: 16 años, 10 meses
Puntos: 59
Re: Menu + clase current

Estoy usando este otro ejemplo, y tampoco me sirve, sucede lo mismo que cito arriba.

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php $thisPage="Home"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vento Acoustic :: Sound &amp; Lightning Products Company <?php if ($thisPage!="")
  echo 
" | $thisPage"?></title>
<link href="home.css" rel="stylesheet" type="text/css" />

<!--[if IE]>
<style type="text/css">
p.iepara{ /*Conditional CSS- For IE (inc IE7), create 1em spacing between menu and paragraph that follows*/
padding-top: 1em;
}
</style>
<![endif]-->

</head>

<body>

<div id="contenedor">

 <div id="header">
   <div id="logo"><a href="index.html"><img src="imagenes/logo.jpg" border="0" /></a></div>
   <div id="animderecha"><script src="incluir.js" type="text/javascript"></script></div>
   <br class="borrarfloat" />
 </div>
   
   <?php
    
include("menu.php");
    
?>
y el archivo menu.php

Código PHP:
  <ul class="solidblockmenu">
    <li<?php if ($thisPage=="Home"
      echo 
" class=\"current\""?>>
      <a href="index.php">Home</a></li>
    <li<?php if ($thisPage=="About Us"
      echo 
" class=\"current\""?>>
      <a href="company.php">Company</a></li>
    <li<?php if ($thisPage=="Our Products"
      echo 
" class=\"current\""?>>
      <a href="category.php">Products</a></li>
  </ul>
Alguien que me pueda dar una mano por favor.
__________________
Plan Original Desarrollo Web
~$>sudo apt-get install -f
"Asi debería arreglarse todo en la vida"