Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/04/2004, 07:44
Avatar de epplestun
epplestun
 
Fecha de Ingreso: octubre-2001
Mensajes: 1.621
Antigüedad: 23 años, 4 meses
Puntos: 5
error muy extraño

Una cosita .... tengo este codigo

Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
	<script>
	function x(){
		document.getElementById('capa').style.backgroundColor = "#ffcc00";
	}
	x();
	</script>
</head>

<body>
<div id="capa" style="border: 1px solid #c0c0c0">
capa
</div>
</body>
</html>
Y nose por que demonios el document.getElementById() no funciona alguien sabe por que?
__________________
Usuario registrado de Linux #288725