Prova ad aggiungere all'if di "scrittura" (
codice:
if (document.layers){
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if (document.all)
liveclock.innerHTML=myclock
) questo codice:
codice:
else if (document.getElementById)
{
if (document.getElementById("liveckock").firstChild)
document.getElementById("liveckock").removeChild(document.getElementById("liveckock").firstChild);
documen.getElementById("liveckock").appendChild(document.createTextNode(myclock));
}
In modo che diventi:
codice:
if (document.layers)
{
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if (document.all)
liveclock.innerHTML=myclock
else if (document.getElementById)
{
if (document.getElementById("liveckock").firstChild)
document.getElementById("liveckock").removeChild(document.getElementById("liveckock").firstChild);
documen.getElementById("liveckock").appendChild(document.createTextNode(myclock));
}
Prova e facci sapere...