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

Chapter 8. Making Your Pages Dynamic > Customizing a Message for the Time of Da...

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 8.3 shows how it is done, and Figure 8.3 shows how we were up writing way past our usual bedtime.

Figure 8.3. It was definitely too late at night when we wrote this.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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