ho modificato uno script per ridimenzionare un livello in base alla risoluzione ma mi da un errore di: out of memory alla linea 8 (if (navigator.appName=="Microsoft Internet Explorer"){) mi potete aiutare a risolvere il problema?
***********************
function resizeDiv(){
height = 0;
width = 0;
if (navigator.appName=="Microsoft Internet Explorer"){
height = document.body.clientHeight;
width = document.body.clientWidth;
}
else{
height = window.innerHeight;
whidth = window.innerWidth;
}
if(navigator.appName=="Microsoft Internet Explorer") {
document.all.livello.style.height = (height);
document.all.livello.style.width = (width);
}
else{
document.getElementById("livello").style.height = (height);
document.getElementById("livello").style.width = (width);
}
if (window.screen.height > 600 && window.screen.width > 800){
resizeDiv(100, 200);
}
}