How to make an imagemap - Server-Side Imagemaps
   
Home: Graphic Academy
 
Graphics Books
 
Graphics File Formats
  Animation File Formats
Bitmap File Formats
CAD File Formats
Cursor File Formats
Font File Formats
Icon File Formats
Metafile File Formats
Prepress File Formats
Vector File Formats
Video File Formats
Web File Formats
More Graphics File Formats
 
Graphics Software
  Banner Design Software
CAD Software
Diagram Drawing Software
Illustration Software
Photo Editing Software
Video Conversion Software
More Graphics Software
 
Graphics Tutorials
 
  • Adobe Dreamweaver Tutorials
  • Adobe Photoshop Tutorials
  • AutoCAD Tutorials
  • How To Draw Tutorials
    Banner Design Tutorial
    Banner Display Tutorial
    Color Combinations Tutorial
    Color-Safe Conversion Tutorial
    eBook Covers Tutorial
    Favicon Tutorial
    GIF + Photo Tutorial
    Good Web Design
    Image Slice Tutorial
    Image Tiling Tutorial
    Imagemap Tutorial
    Photography Tutorial
    Prevent Copying Tutorial
    Screenshots Tutorial
    Should I Use Flash?
    Text to Images Tutorial
    Web Image File Formats
    More Graphics Tutorials
  •  
    Graphics Glossary


    Advertisement
     
    Christmas Graphics Super Pack
    Over 1500 High Quality Royalty Free Christmas Images To Download Immediately


    The 156 Meg Christmas Graphics Super Pack, Is Chock Full Of .jpg, .gif, And .png Files To Keep You Busy Clear Till Christmas!
    Click here

    or

    Read the Review of Christmas Clipart
     
         
    GraphicsAcademy.com  >  Tutorials  >  Make An Imagemap  >  Chapter 1

       

     

    How To Make An Imagemap

    Chapter 1: Server-Side Imagemaps

    With Server-Side imagemaps:
    • You place some code in your HTML pages and the image is displayed.

    • When the user clicks on the image, the X and Y coordinates of the click, relative to the top left of the image, are sent back to the web server.

    • The web server then needs to figure out how to respond.
    The hard part is making your web server respond in the correct way to each click. The web server needs to figure out what to do based on the X,Y coordinate of the click.

    You setup make the web server respond to the click either of two different ways:
    1. Either, you can make clicks on the image link to your own ASP, CGI, PHP script, and then develop your own script which responds in whichever way you want.

    2. Or, on some web hosts, it is possible to setup a text file specifying the coordinates of various regions on the image, and what happens when any particular region is clicked.

      Just to make this more confusing there are at least two different formats that this text file can be in, depending on your web host: NCSA and CERN. Check with your web host to see which, if any, of these formats they support.
    I don't recommend using Server-Side imagemaps, because:
    • Every click on the image generates a separate request to the server.

    • The procedures for Server-Side imagemaps involve either writing your own scripts (too much work!), or depend on which particular web host you are currently using (and thus might need to be changed if you switch to another web host).

    • It is not possible to provide the user with any visual cues when they are moving their mouse over the imagemap. Instead, all they see is the status line of the browser contains the URL of the script with the X and Y coordinates as parameters. You can see what I mean by this, by looking at the imagemap below, and moving your mouse over it.
    Here is Server-Side side imagemap (I haven't however bothered to make it actually work, a click anywhere on the imagemap will simply return you to this page, but you will be able to see the X,Y coordinates passed in the URL parameters if you click).

    Server-Side Imagemap
    (Not Functional)

    Here is the HTML code used to generate that imagemap, with the two crucial parts shown in red:

    <A HREF="howto_imagemap.php"><IMG SRC="imagemap.gif" WIDTH="250" HEIGHT="250" BORDER="1" ISMAP></A>
    • The first part in red is the URL of the script on the server to link to.

    • The ISMAP attribute tells the browser, that the linked image should be treated as a Server-Side imagemap, and that the X,Y coordinates should be sent to the server when the user clicks.

      
    How To Make An Imagemap:
     
     
      << PreviousIntroduction   1   2   3Next >>  
       


       
     
       
     
       
    Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

    Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

    Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.

    Contact Us     Privacy     Terms Of Use     Advertising/Endorsements Disclosures

    Copyright © 2005-2020, Answers 2000 Limited

    In Association With Amazon.com
    Answers 2000 Limited is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com.
    In Association With Amazon.co.uk
    Answers 2000 Limited is a participant in the Amazon EU Associates Programme, an affiliate advertising programme designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.co.uk.
    As an Amazon Associate, our company earns from qualifying purchases. Amazon, the Amazon logo, Endless, and the Endless logo are trademarks of Amazon.com, Inc. or its affiliates.



    CERTAIN CONTENT THAT APPEARS ON THIS SITE COMES FROM AMAZON SERVICES LLC. THIS CONTENT IS PROVIDED 'AS IS' AND IS SUBJECT TO CHANGE OR REMOVAL AT ANY TIME.
    CERTAIN CONTENT THAT APPEARS ON THIS SITE,COMES FROM AMAZON EU S.à r.l. THIS CONTENT IS PROVIDED 'AS IS' AND IS SUBJECT TO CHANGE OR REMOVAL AT ANY TIME.

    All trademarks are property of their respective owners.
    All third party content and adverts are copyright of their respective owners.

    Some graphics on our web sites are Copyright (C) 1997-2000 Hemera Technologies Inc., and used under license. All such pictures are provided for viewing purposes only and are not to be saved or downloaded. All such pictures of recognizable individuals are models and used for illustrative purposes only, and not meant to imply any association or endorsement of said individual with any product or service.