Codice PHP:
var cle;
function 
clifot(pht) {
 
clearTimeout(cle);
 
document.getElementById("myfot").innerHTML="<DIV style='width: 500; height: 375; background-image: url(corn_00.jpg);'><TABLE width='100%' style='height: 100%;' cellpadding='0' cellspacing='0'><TR><TD align='center'>[img]"+pht+".jpg[/img]</TD></TR></TABLE></DIV>";
  
clesetTimeout(function (){clefot();}, 8000);
}
function 
clefot() {
 
document.getElementById("myfot").innerHTML="";

Questo funzionerebbe allora! :P