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

Chapter 8. Making Your Pages Dynamic > Creating a Countdown

Creating a Countdown

Sooner or later, you'll want to put a countdown on your pages that tells the user how many days or hours until a particular event. Script 8.6 lets one of the authors know his responsibilities, in no uncertain terms, as you can see in Figure 8.6. This is another technique that uses two scripts. The header script does all of the calculations, and the body script takes the calculation results, sticks them all together, and writes them out to the document window.

Figure 8.6. …and nag your loved one at the same time.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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