var bild=new Image();
var dia=new Array ("home1.jpg", "home2.jpg", "home3.jpg", "home4.jpg");
var a=0; //ist die Variable für die Index-Nummer im Array
function diashow()
{
window.document.images[0].src=dia[a];
a++;
if (a==4)
{
a=0;
}
window.setTimeout ('diashow()', 4000);
}
