1. Technology
Send to a Friend via Email

Day of Week

4. Set Options

clr gif
Join the Discussion

Questions? Comments?

The final step in installing this script is to adjust the options in the last line of the script.

})('graphics/','gif','dow');

These first of these parameters identifies the path to the images. If the images are in the same folder as the web page then it should be empty - '' - if not it is the sub-folder where the images can be fount followed by a slash.

The second parameter is the type of the images being used - 'gif', 'jpg', or 'png'.

The third parameter is the id of the image that the script is to update - in my example I gave the image an id of 'dow';

You can include multiple day of week images into the same web page by adding multiple copies of the same code into the page and using a different path and different id for each.

1 | 2 | 3 | 4

©2014 About.com. All rights reserved.