• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Making Your Pages Dynamic > Customizing a Message for the Time of D...

Customizing a Message for the Time of Day

You can take the technique used in the last example and use it again to customize a message for the user, depending on the time of day. This is often used as a friendly greeting when a user enters a site. Script 10.3 shows how it is done, and Figure 10.3 shows how we were up writing way past our usual bedtime.

Script 10.3. Scripts can be used to check what time of day it is, and react appropriately.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint