Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/05/2008, 15:18
a2a2
 
Fecha de Ingreso: marzo-2008
Mensajes: 303
Antigüedad: 16 años
Puntos: 4
Re: cambiar color pagina con estilos css como en yahoo

Una forma es la siguiente, utilizar un fichero .css externo que se cambie via javascript:

Código:
<html>
<head>
  ...
  <link id="estilo" href="css/fich1.css" type="text/css" rel="stylesheet" media="screen" />
  ...
  function f_cambiarEstilo( fich )
  {
    m_link = document.getElementById("estilo");
    m_link.setAttribute( "href", "css/" + fich );
  }
</head>
<body>
...
</body>
</html>