• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. Swapping Out Image Maps > Image Map Information in JavaScript

Image Map Information in JavaScript

It's also possible to place all of your image map information in JavaScript, with none of it being HTML. It turns out this creates much longer code, but it also allows you to alter an individual area's coordinates, href, target, and shape on the fly.

Since all of the image map information lives in the JavaScript, our HTML is pretty simple, as shown in Example 3-6.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint