25 Years Successfully Designing, Hosting and Promoting Websites
|
Websites Online is honored to be a And winner of the
|
Implementing ImagemapsImagemaps allow the user to click on predefined sections of a graphic picture on your page and have the server respond as if they clicked on a text hyperlink.
Client-side Imagemaps (recommended method) Client-side imagemaps do not require the presence of a server-side script in order to interpret the coordinates of the "hot" regions of your multi-clickable image. The client-side imagemap is much more efficient than the server-side imagemap and it allows the visitor to see the actual URL associated with the mapped regions in the status bar of their web browser.
Server-side Imagemaps Server-side imagemaps are less efficient and less user friendly than client-side imagemaps, but they are more widely supported, especially with older browsers. We use the Apache built-in imagemap processor, mod_imap, to process imagemap requests. mod_imap gives you the same basic functionality as either /cgi-bin/imagemap or /cgi-bin/htimage, but allows simpler HTML coding, runs faster, and has a variety of additional functions that you can use, including text menu generation for text-only browsers. To implement mod_imap imagemap functionality, you need to perform two steps. First you need to create your imagemap file in NCSA format using an imagemapping tool such as MapEdit (PC) and WebMap (Mac).
Then you need to reference your map file from its corresponding image in your HTML like this:
Full details of the format as used by mod_imap can be found at: Converting from /cgi-bin/imagemap to mod_imap: If you're currently using /cgi-bin/imagemap, it is easy to switch to mod_imap. If your HTML looks like this: <A HREF="/cgi-bin/imagemap/somepath/mapfile.map"> Just change it to: <A HREF="/somepath/mapfile.map"> And you're done. Notice that all you're doing is removing the '/cgi-bin/imagemap' part. mod_imap and /cgi-bin/imagemap both use the NCSA imagemap format, so no other changes are needed. Converting from /cgi-bin/htimage to mod_imap: If you're currently using /cgi-bin/htimage, you'll make a similar change, i.e.: <A HREF="/cgi-bin/htimage/somepath/mapfile.map"> becomes: <A HREF="/somepath/mapfile.map"> The htimage program uses the CERN imagemap format, so you must also convert your mapfiles to NCSA format. If you're using a graphical imagemap editor, most allow you to "Save As" either format, so you should be able to just load your files and resave them under NCSA format. If your editor doesn't support NCSA, or you are creating your mapfiles manually, you must make the changes yourself. A simple example comparing the CERN and NCSA formats can be found at: http://www.ihip.com/mapfile.html
Search this site by typing in your search term then click the search button.
Custom Search
Take a break and have a laugh
|
Please contact the
Webmaster with comments about this site.
|
Please contact the
Webmaster with comments about this site.
|