secciones
notas de javascript
domingo, 13 de mayo de 2018
#javascript

notas de javascript

onLoad="setTimeout(window.close,10000);window.resizeTo(350,screen.availHeight);"

document.getElementById('div1660_03').innerHTML=document.body.clientWidth+'-'+document.body.clientHeight;

document.getElementById('div1660_03').innerHTML=document.body.clientWidth;

function tamano(valor) {
tam = parseFloat(document.getElementById('dtexto').style.fontSize);
tam += valor;
//alert (tam);
//elem = document.getElementsByTagName('*');
//for(i=0;ele=elem[i];i++)
document.getElementById('dtexto').style.fontSize=tam+'px';

function laterales(){
document.getElementById('div1660_03').innerHTML=document.body.clientWidth+'-'+document.body.clientHeight;
var altura=document.body.clientHeight
var anchura=document.body.clientWidth
if(anchura>400 & anchura<950){
document.getElementById('div_menu').style.width='98%';
document.getElementById('div_principal').style.width='700';
document.getElementById('div_nuevo').style.width='650';
}
else if(anchura>950 & anchura<1000){
document.getElementById('div_menu').style.marginTop='30px';
document.getElementById('div_principal').style.width='95%';
document.getElementById('div_nuevo').style.width='750';
document.getElementById('dtexto').style.fontSize='22px'
}
else {
document.getElementById('div_menu').style.width='98%';
document.getElementById('div_principal').style.width='700';
document.getElementById('div_nuevo').style.width='650';
}
}

© Zalberto | enero - 2026