11. Making Your Pages Dynamic

In This Chapter

Putting the Current Date into a Web Page 262

Working with Days 264

Customizing a Message for the Time of Day 265

Displaying Dates by Time Zone 266

Converting 24-Hour Time to 12-Hour Time 272

Creating a Countdown 274

Hiding and Displaying Layers 278

Moving an Object in the Document 281

Date Methods 283

Effective Web pages are a result of many different factors, including compelling content, good design, and attention to detail, such as how fast the page loads. One of the ways to speed up page loads, while still providing the user with an interesting and interactive experience, is to use JavaScript to make individual page elements update within the user’s browser. In other words, instead of your Web ...

Get JavaScript: Visual QuickStart Guide, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.