Diferencia entre revisiones de «MediaWiki:Descubriendo09.js»
De Descubriendo la Física
Ir a la navegaciónIr a la búsqueda| Línea 2: | Línea 2: | ||
imageBackground= "url('/descubriendo/background.php?anchoPantalla="+ screen.width + "');"; |
imageBackground= "url('/descubriendo/background.php?anchoPantalla="+ screen.width + "');"; |
||
alert(imageBackground); |
alert(imageBackground); |
||
| − | document.body.style.backgroundImage= |
+ | document.body.style.backgroundImage="url('background.png')"; |
} |
} |
||
Revisión del 06:17 30 nov 2009
if (window.screen) {
imageBackground= "url('/descubriendo/background.php?anchoPantalla="+ screen.width + "');";
alert(imageBackground);
document.body.style.backgroundImage="url('background.png')";
}
Debug data:
