13. Image Slideshow

It’s pretty amazing how many different ways you can hide and show page elements to create menus, tabs, accordions, and other custom user interface components. This chapter will show you how to create a simple slideshow of images, the core of which is elegantly hiding and showing one image at a time.

Debugging Your Code

This is the first chapter in the book that will walk you step-by-step through a nontrivial example. If you get stuck, Firebug will become your best friend. Here are some tips to help you debug your code:

• Check the console to see whether there are any errors. Firebug does a pretty good job of telling you on which line number the error occurred.

If the error actually occurs inside a JavaScript library, Firebug’s ...

Get The JavaScript PocketGuide 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.