Diferencia entre revisiones de «MediaWiki:Descubriendo09.js»

De Descubriendo la Física
Ir a la navegaciónIr a la búsqueda
Línea 1: Línea 1:
 
if (window.screen) {
 
if (window.screen) {
  +
imageBackground= "url(/descubriendo/background.php?anchoPantalla:"+ screen.width+ ");";
if (screen.width < = 400) {
 
document.body.style.backgroundImage="url(/descubriendo/background.php?anchoPantalla:"+ screen.width+ ");";
+
document.body.style.backgroundImage= imageBackground;
}else{
 
 
}
 
 
}
 
}

Revisión del 06:11 30 nov 2009

if (window.screen) {
   imageBackground= "url(/descubriendo/background.php?anchoPantalla:"+ screen.width+  ");";
   document.body.style.backgroundImage= imageBackground;
}

Debug data: