Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/05/2010, 06:51
kokoou
 
Fecha de Ingreso: enero-2008
Ubicación: Buenos Aires
Mensajes: 305
Antigüedad: 16 años, 3 meses
Puntos: 14
Respuesta: Como dejar activo un boton en paginas HTML(no dinamicas)

facil, por ejemplo en index.html

Código HTML:
Ver original
  1. <div id="menu"><!--START DIV ID MENU-->
  2.    <ul>
  3.       <li id="home" class="activo"><a href="http://www.forosdelweb.com/f53/index.html" title="Home">Home page</a></li>
  4.       <li id="aboutme"><a href="http://www.forosdelweb.com/f53/aboutme.html" title="About me">About me</a></li>
  5.       <li id="services"><a href="http://www.forosdelweb.com/f53/services.html" title="Services">Services</a></li>
  6.       <li id="gallery"><a href="http://www.forosdelweb.com/f53/gallery.html" title="Gallery">Gallery</a></li>
  7.       <li id="contact"><a href="http://www.forosdelweb.com/f53/contact.html" title="Contact me">Contact me</a></li>
  8.     </ul>
  9.   </div><!--END DIV ID MENU-->

y te creas una nueva clase llamada "activo" y le pones el estilo que quieras

Código CSS:
Ver original
  1. .activo { background-color: #F90 }