Code: Select all
// imgsrc = "sky.jpg";
// should be
imgsrc = "images/sky.jpg";Although that should still work given your directory structureimgsrc = "/wx/images/sky.jpg";
BUT ..
Code: Select all
// tmp = new Date();
// tmp = "?" + tmp.getTime();
// document.images["image1"].src = imgsrc + tmp; Hmm ... it's saying image1 is undefined.
Try taking the JavaScript out the <header> and put it just before the </body> tag.