Ciao a tutti... non capisco come mai funziona solo con explorer sto script di preload e non con FF opera etc .. .
per renderlo compatibile cosa dovrei modificare grazie ciao a tutti..
<script>
var nt = document.layers;
var ie = document.all;
function wait(){
if(ie || nt){
if(nt) document.loadwait.visibility="hidden";
else loadwait.style.visibility="hidden";
}
}
onload=wait;
</script>
<style>
#loadwait{position:absolute;width:100%;height:95%;top:0;left:0;background-color:white;layer-background-color:white; font-family:arial,helvetica;}
</style>
</head>
<body bgcolor="#FFFFFF">
<script>
if(ie || nt) document.write('<div id="loadwait"><table width="100%" height="95%" align="center" valign="middle"><tr><td width="100%" height="100%" align="center" valign="middle"><h2>...Attendere Prego....</h2></td></tr></table></div>')
</script>
per renderlo compatibile cosa dovrei modificare grazie ciao a tutti..
<script>
var nt = document.layers;
var ie = document.all;
function wait(){
if(ie || nt){
if(nt) document.loadwait.visibility="hidden";
else loadwait.style.visibility="hidden";
}
}
onload=wait;
</script>
<style>
#loadwait{position:absolute;width:100%;height:95%;top:0;left:0;background-color:white;layer-background-color:white; font-family:arial,helvetica;}
</style>
</head>
<body bgcolor="#FFFFFF">
<script>
if(ie || nt) document.write('<div id="loadwait"><table width="100%" height="95%" align="center" valign="middle"><tr><td width="100%" height="100%" align="center" valign="middle"><h2>...Attendere Prego....</h2></td></tr></table></div>')
</script>