Using Server-Side and Client-Side Image Maps Together

Client-side image maps are a great idea because they permit faster image map processing and enhance the portability of your XHTML documents. Unfortunately, you can't be certain all image-capable browsers are compliant with the XHTML 1.0 recommendation and support the client-side image map approach described earlier in the chapter. To be on the safe side, you can combine server-side and client-side image maps, essentially implementing both at the same time, to ensure your image maps are accessible to the broadest possible audience.

To combine a server-side image map with a client-side image map for the main page example discussed earlier, you can modify the earlier XHTML as follows:

 <a href=http://www.server/maps/mainpage.map"> ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 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.