Diferencia entre revisiones de «MediaWiki:Descubriendo10.js»
De Descubriendo la Física
Ir a la navegaciónIr a la búsqueda| (No se muestran 32 ediciones intermedias del mismo usuario) | |||
| Línea 1: | Línea 1: | ||
| − | if (window.screen) { |
+ | if (window.screen) { |
| − | if (parseInt(navigator.appVersion)>3) { |
+ | if (parseInt(navigator.appVersion)>3) { |
| − | + | if (navigator.appName=="Netscape") { |
|
| − | winW = window.innerWidth-16; |
+ | winW = window.innerWidth-16; |
| − | winH = window.innerHeight-16; |
+ | winH = window.innerHeight-16; |
| + | linea="<style> body{ background-image:url"+ |
||
| ⚫ | |||
| + | "anchoPantalla="+ winW + "');}</style>"; |
||
| ⚫ | |||
| + | } |
||
} |
} |
||
| ⚫ | |||
| − | if (navigator.appName.indexOf("Microsoft")!=-1) { |
||
| + | |||
| ⚫ | |||
| + | |||
| ⚫ | |||
| + | function ajustarFondo() |
||
| − | }*/ |
||
| + | { |
||
| − | alert("existe window.screen"); |
||
| ⚫ | |||
| − | /* |
||
| − | alert(navigator.userAgent); |
||
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x; |
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x; |
||
| − | alert("Estás usando el internes esplorer..."); |
+ | /* alert("Estás usando el internes esplorer...");*/ |
| ⚫ | |||
| − | } |
||
| ⚫ | |||
| − | winH=100;winW=100; |
||
| + | document.body.style.backgroundImage="url(/descubriendo/background.php?anchoPantalla="+ winW+")"; |
||
| − | */ |
||
| + | } |
||
| − | /* |
||
| − | linea="<style> body{ background-image:url('/descubriendo/skins/descubriendo10/background.php?anchoPantalla="+ /*window.screen.width* / winW + "');}</style>"; |
||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
| − | */ |
||
Revisión actual - 21:49 18 jun 2010
if (window.screen) {
if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
winW = window.innerWidth-16;
winH = window.innerHeight-16;
linea="<style> body{ background-image:url"+
"('/descubriendo/skins/descubriendo10/background.php?"+
"anchoPantalla="+ winW + "');}</style>";
document.write(linea);
}
}
};
function ajustarFondo()
{
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
/* alert("Estás usando el internes esplorer...");*/
winW = (document.body.offsetWidth);
winH = (document.body.offsetHeight)-20;
document.body.style.backgroundImage="url(/descubriendo/background.php?anchoPantalla="+ winW+")";
}
}
Debug data:
