Chapter 13: Making Your Pages Dynamic

Return to Chapter 13

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Customizing a Message for the Time of Day

See it run: Customizing a Message for the Time of Day

Script 13.3

This JavaScript checks what time of day it is, and reacts appropriately.