O'Reilly logo

The JavaScript PocketGuide by Lenny Burdette

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

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

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