the daily image
Free JavaScripts provided
by The JavaScript Source
The image that you see displayed above will depend on the day of the week that you visit this page. The script in the background reads the current day on the browser's computer and then picks the appropriate image from the collection - seven of them, of course.
The script itself is very simple. In fact, here it is:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
today = new Date();
day = today.getDay();
arday = new Array("sunday.jpg", "monday.jpg", "tuesday.jpg", "wednesday.jpg", "thursday.jpg", "friday.jpg", "saturday.jpg");
document.write("<img src='" + arday[day] + "'>");
// End -->
</script>
Copy this script anywhere in the body of your page and make sure the images are in the same folder. As with the other image swap scripts, the images must all be the same size, although they don't have to be the same type. If your images are in another location, add the path to that location before each image name. For example, if you have an images folder, the sunday image would be shown in the script as "images/sunday.jpg".

