Chapter 3. Swapping Out Image Maps

IN THIS CHAPTER

  • The Scenario

  • Multiple Image Maps in HTML

  • Image Map Information in JavaScript

There are several ways to dynamically change an image's image map. This can be useful on a home page where a central image serves as the submenu for several navigation items. Unfortunately, the easy ways to accomplish this require methods that aren't available to Netscape 4. Thus, this chapter focuses on altering image maps for IE5+ and Netscape 6 and above. This may ruffle the feathers of some browser purists, but I believe that the time is coming (and soon; possibly by the time you have this book in your hands) when it will be no longer be standard practice to code for the 4.x browsers. Either that or everyone will ...

Get Advanced JavaScript™: Insights and Innovative Techniques 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.