Ver Mensaje Individual
  #8 (permalink)  
Antiguo 14/11/2008, 14:14
manou
 
Fecha de Ingreso: octubre-2004
Ubicación: Barcelona
Mensajes: 28
Antigüedad: 19 años, 5 meses
Puntos: 0
Respuesta: CSS condicional

Hola,

... mira este código a ver que te parece por si quieres hacer algo parecido en tu caso.

Código:
<html>
<head>
<script type="text/javascript">
function resaltaPrimero() {
	var t = document.getElementsByTagName('h1');
	t[0].style.fontSize = '50px';
	t[0].style.backgroundColor = '#cccccc';
}
</script>
</head>
<body onload="resaltaPrimero();">
<h1>titulo1</h1>
<h1>titulo2</h1>
<h1>titulo3</h1>
</body>
</html>