Ver Mensaje Individual
  #30 (permalink)  
Antiguo 08/09/2009, 17:16
Plaguelord
 
Fecha de Ingreso: agosto-2009
Mensajes: 30
Antigüedad: 14 años, 9 meses
Puntos: 0
Respuesta: Forzar resolución

Debo ser realmente muy autista, pero no puedo, me sigue mostrado el fondo en blanco...

Cita:
Iniciado por Script CSS
Código:
body {
	background: #000000 url(url.img) no-repeat;
background-attachment: fixed;
	color: $textocolor;
	font: normal 62.5% "Trebuchet MS",Verdana,sans-serif;
	padding-left: 0px;
}
Cita:
Iniciado por Script js
Código:
<script LANGUAGE="JavaScript"> 
var img1 = "url.img1"; 
var img2 = "url.img2"; 
var ratio = screen.width/screen.height;
if(ratio>1.3&&ratio<1.4){ //4:3
document.body.style.backgroundImage = "url(url.img1)";
} else if(ratio>1.7&&ratio<1.8){ //16:9
document.body.style.backgroundImage = "url(url.img2)";
}else //default
document.body.style.backgroundImage = "url(url.img1)"; 
</script>
Y, ya sea reemplazando la sección body del CSS por el script js, o incluyendolo dentro, me muestra el fondo en blanco.
No entiendo =( =$