Displaying A Specific Image
Based On Time Via JavaScript / DOM
Example 3: Part Of Day

This example shows one of four specific images based on the part of the day: early morning, morning, afternoon and evening.

These are the images that are scheduled to appear:

midnight - 6 a.m. 6 a.m. - noon noon - 6 p.m. 6 p.m. - midnight

Example 1: Hour Of Day

Example 2: Day Of Week

Displaying An Image On A Web Page Based Upon The Current Time With JavaScript / DOM