
Код:
function loadOK() {
document.images.myimage.src = this.src;
setTimeout('updateImage()',5000);
}
function loadERROR() {
alert('Error update image from '+this.src);
}
function updateImage() {
var tempImage = new Image;
tempImage.onload = loadOK;
tempImage.onerror = loadERROR;
tempImage.src = 'http://...';
}