Chapter 9. TIMING EVENTS
Precise timing of events on your web pages transforms them from static documents to true multimedia applications. If you can time events, you can pace slide shows, create timed games, and control when visitors may perform different actions. In later chapters we'll see how timing events can animate your entire site.
In this chapter, you'll learn how to:
Control when events happen on your web page
Build clocks that update in real time
Create slide shows that move at whatever pace you want
Real-World Examples of Timing Events
We've already seen a few examples of web pages that use event timing. In the last chapter, we saw how visitors to the Book of JavaScript web page get a new programming tip every 3.5 seconds. Space.com has ...
Get The Book of JavaScript, 2nd 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.