dov'è l'errore in questo script?
Su Explorer ovviamente funziona alla perfezione, mentre su FireFox mi dà quest'errore:Codice:<script language="Javascript">
var i=0;
function rotate(){
i++;
if (i>2){
i=1;
}
if (document.getElementById){
obj=document.getElementById("prova");
if (document.all){
obj.innerHTML=news[i];
}else{
obj.document.open();
obj.document.write(news[i]);
obj.document.close();
}
}
}
rotate();
myInterval=window.setInterval("rotate()",7000);
</script>
Errore: obj.document has no properties
Chi mi può aiutare?
