Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

What is the difference between client-side and server-side imagemaps?

In order for an image on the web to contain a link to more than one destination, it must have an imagemap. The imagemap defines regions of the image and associates each region with a different link.

Two kinds of imagemaps exist, server-side and client-side. In the server-side method, when you click an image leading to multiple links, you are actually invoking a cgi-bin program. The program typically reads a separate map file that tells the program where to go depending on what part of the image you are clicking. The program returns the destination to the web browser, which then opens the page. The imagemap is server-side because the web browser had to contact the remote host to know which site it should contact.

Client-side imagemaps, in contrast, do not require a cgi-bin program to function. The imagemap is actually an HTML construct that can be contained on the same page as the clickable image. Rather than the program on the remote host figuring out what site to go to, the web browser itself knows what regions of the image are associated with what sites. The browser, rather than the remote host, interprets the imagemap.

Client-side imagemaps are usually faster than server-side imagemaps and, in general, easier to create. Their main disadvantage is that older browsers, and less fully featured ones, may not support them. Fortunately, it is usually possible to create a clickable image that can have both a server-side and a client-side imagemap.

This is document adyd in domain all.
Last modified on May 13, 2009.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.