Sale a tutti
ho questo problema che su ie funziona mentre su firefox no
Questo è lo scirpt:
function publON(x){
var ElPubl=document.getElementById("publ");
if(x==0){
ElPubl.style.display="block";
}
x++;
var alt= 300;
var lung= 300;
var t= Math.floor((screen.height-alt-100)/2);
var l= Math.floor((screen.width-lung)/2);
ElPubl.style.top=t;
ElPubl.style.left=l;
ElPubl.style.width=alt+"px";
ElPubl.style.height=x+"px";
if(x<300){
setTimeout("publON("+x+")",1);
}
}
</SCRIPT>
<body onload="publON(0)">
<div id="publ" style="position:absolute; display:none; z-index:1">
NON CAPISCO IL PERCHè SU FIREFOX NON ME LO METTE A CENTRO SCHERMO.