Test Your Knowledge

  1. What are the O, S, and C functions provided to do?

  2. Provide two ways to modify a CSS attribute of an object.

  3. Which properties provide the width and height available in a browser window?

  4. How can you make something happen when the mouse pointer passes over and then out of an object?

  5. Which JavaScript function creates new elements, and which appends them to the DOM?

  6. How can you make an element a) invisible and b) collapse to zero dimensions?

  7. Which function creates a single event at a future time?

  8. Which function sets up repeating events at set intervals?

  9. How can you release an element from its location in a web page to enable it to be moved around?

  10. What delay between events should you set (in milliseconds) to achieve an animation rate of 50 frames per second?

See Chapter 20 Answers in Appendix A for the answers to these questions.

Get Learning PHP, MySQL, JavaScript, and CSS, 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.