Diferencia entre revisiones de «MediaWiki:Descubriendo10.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) { |
if (parseInt(navigator.appVersion)>3) { |
if (parseInt(navigator.appVersion)>3) { |
||
if (navigator.appName=="Netscape") { |
if (navigator.appName=="Netscape") { |
||
| Línea 9: | Línea 9: | ||
winH = document.body.offsetHeight-20; |
winH = document.body.offsetHeight-20; |
||
} |
} |
||
| − | } |
+ | }*/ |
/* |
/* |
||
alert(navigator.userAgent); |
alert(navigator.userAgent); |
||
| Línea 17: | Línea 17: | ||
winH=100;winW=100; |
winH=100;winW=100; |
||
*/ |
*/ |
||
| + | /* |
||
| − | |||
| − | linea="<style> body{ background-image:url('/descubriendo/skins/descubriendo10/background.php?anchoPantalla="+ /*window.screen.width*/ winW + "');}</style>"; |
+ | linea="<style> body{ background-image:url('/descubriendo/skins/descubriendo10/background.php?anchoPantalla="+ /*window.screen.width* / winW + "');}</style>"; |
document.write(linea); |
document.write(linea); |
||
document.body.style.background="url('/descubriendo/skins/descubriendo10/background.php?anchoPantalla="+ window.screen.width + "');" |
document.body.style.background="url('/descubriendo/skins/descubriendo10/background.php?anchoPantalla="+ window.screen.width + "');" |
||
} |
} |
||
| + | */ |
||
Revisión del 21:07 18 jun 2010
/*if (window.screen) {
if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
winW = window.innerWidth-16;
winH = window.innerHeight-16;
}
if (navigator.appName.indexOf("Microsoft")!=-1) {
winW = document.body.offsetWidth-20;
winH = document.body.offsetHeight-20;
}
}*/
/*
alert(navigator.userAgent);
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
alert("Estás usando el internes esplorer...");
}
winH=100;winW=100;
*/
/*
linea="<style> body{ background-image:url('/descubriendo/skins/descubriendo10/background.php?anchoPantalla="+ /*window.screen.width* / winW + "');}</style>";
document.write(linea);
document.body.style.background="url('/descubriendo/skins/descubriendo10/background.php?anchoPantalla="+ window.screen.width + "');"
}
*/
Debug data:
