O'Reilly logo

JavaScript: Visual QuickStart Guide, Eighth Edition by Dori Smith, Tom Negrino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required