Image Displays in Preview, Not...

User 495282 Photo


Registered User
132 posts

I have created 7 images (basically the same image in different colors). Each image is to be displayed on a particular day of the week. In preview the image displays properly. After saving and uploading the changes, the image will not appear. The image in question is located on the main page of the site at susiekatesdesigns.com. I have spent an hour or so trying to look at the code and the files for any errors. I can't seem to figure it out. The javascript code for alternating the images once a day is as follows:

<script type="text/javascript"><!--
var imlocation = "images/";
function ImageArray (n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
image = new ImageArray(7);
image[0] = 'Sunday.PNG';
image[1] = 'Monday.PNG';
image[2] = 'Tuesday.PNG';
image[3] = 'Wednesday.PNG';
image[4] = 'Thursday.PNG';
image[5] = 'Friday.PNG';
image[6] = 'Saturday.PNG';
var currentdate = new Date();
var imagenumber = currentdate.getDay();
document.write('<img src="' + imlocation + image[imagenumber] + '">');
//--></script>

Each image was saved in the "images" folder and appears there. Anyone have any ideas or suggestions?
Booth Kates

Patience...Persistence...Practice

http://www.boothkates.com
http://www.susiekatesdesigns.com
http://www./paradisecovemarinahs.com
http://www.thehillsab.com

User 1948478 Photo


Senior Advisor
1,850 posts

The images are in the Images/ directory, not in images/. (Change to capital "I" ;) )
User 495282 Photo


Registered User
132 posts

Thank you, Per.....Couldn't see the forest for the trees.....It is now functioning as it should be. Really appreciate the rapid response.
Booth Kates

Patience...Persistence...Practice

http://www.boothkates.com
http://www.susiekatesdesigns.com
http://www./paradisecovemarinahs.com
http://www.thehillsab.com


Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.