Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/07/2007, 11:08
Roly
 
Fecha de Ingreso: febrero-2004
Ubicación: Resistencia - Argentina
Mensajes: 299
Antigüedad: 20 años, 2 meses
Puntos: 0
Re: Imagen con css.

este codigo es en php, fijate si te sirve:
Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<?php
if($_POST['estilo']=="estilo2"){
?><link rel="stylesheet" type="text/css" href="HojaDeEstilosNro2.css"><?
} else {
?><link rel="stylesheet" type="text/css" href="HojaDeEstilosNro1.css"><?
}
?>
</head>

<body>
<form name="formEstilos" method="post" action="<?=$_SERVER['PHP_SELF']?>">
<select name="estilo">
<option value="estilo1">Estilo Nº1</option>
<option value="estilo2">Estilo Nº2</option>
</select>
<input type="submit" value="Cambiar" />
</form>
</body>
</html>
Por defecto selecciona la hoja de estilos Nro 1