Web Help Forum




   

<< January 2008 >>
Sun Mon Tue Wed Thu Fri Sat
 01 02 03 04 05
06 07 08 09 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31


 Video Gallery

 Video Gallery
 Meta Links
Blogdrive HelpForum
 Meta Links
 Cool Stuff
Shutterfly.com

Nice Cards
 Cool Stuff






rss feed

Contact HelpForum




cc

blogdrive



 
2008.01.20
Simple Image Mapping

by John Furie Zacharias

Image mapping is a method of hyperlinking areas of an image to destination web pages.  There are a number of methods to create an image map.  There are server-side and a client-side methods.  Many people don't have access to the server side methods, so quite a number of (browser) client-side methods are more widely used.  However, even those methods involve some additional knowledge of java, javascript, XHTML, CSS, or incantations from the Hogwarts wizard academy.

Here is my own low-tech hack method of image mapping that I developed while working undercover as a marine biologist teaching fish anatomy to grammar school children in the Cayman Islands. *

The low-tech HTML table method of simple image mapping means that you must decide upon an entirely horizontal and vertical grid for your image.  HTML tables only support rows and columns, not irregular polygons and circles. So, we have to make decisions how to chop up our image.

black angel fish

As you can see from the pink lines and numbers, I chose to create a 3-column and 4-row HTML table.  Now that we have sushi-cut our fishy to highlight its anatomical parts to become HTML links, we can continue our work using one of two different methods.  I'm going to focus on the black angel fish's fins for the sake of explanation.


The first method requires that you edit the original image and cut it up to fit into your HTML table. Using your image editor software, you need to create 12 seperate images, like squared puzzle pieces.  For the sake of brevity, here is the first row of images 1, 2 and 3.  I added cellpadding space so you could see that there are 3 images below.

Using this first method and the same images as above, you then wrap each image in an HTML hyperlink destination of your choice. It will look something like this, linking the 3rd image to the wiki definition of a dorsal fin:


So ... only 9 more image edits to fit into our table puzzle and then we still have to link them all.  I have a much faster and easier method of doing this.

Using the same concept, let's make our 12 image links by virtually cutting up the original image.  However, instead of using image editor software to make our puzzle pieces, let's use our original image in full as the background image of the 3-column and 4-row table.  Then, we can simply use our magical transparent image as the wrapped image link, sized for each of the 12 table cells.

I think my second method has several time-saving benefits.  You don't actually have to carefully cut up the image.  It's all imaginary cutting and sizing with a transparent GIF image wrapped in the hyperlink for the destination page.  You only have to host the original background image and the one transparent GIF image, rather than all the individual piece images.


Hey Kids!  Click on the fish's fins to learn more!

Go ahead. Click.  I said, CLICK.  Okay.  Click on a fin now or no snack time for you.

If you want the HTML code for the above table in order to understand it better, simply use your web browser's View > Source option.

 

JfZ John Furie Zacharias knows which part of this statement * is not true.


  web graphics, html tips    View Technorati Info  ,

  Blog This!    Bookmark This!    Email This!    Digg it!







Deirdre
January 20, 2008   11:03 AM PST
 
I've always wondered how to do this! I'm going to have to try to implement the knowledge sometime soon! Great post. :D
jude
January 20, 2008   12:45 PM PST
 
clever low-tech work-arounds, jfuzz...i hadn't thought of the transparent gif approach. bravo!

another avenue for easy-peasy image mapping is a freeware program called "MapThis." [click name for more info or google search]. it's no longer supported, but is a good little program nonetheless, super-fast, super-easy to use and works with both client-side and server-side imagemaps, using either gif or jpg image files.

or you could download its free successor, Live Image here:
http://www.freedownloadscenter.com/Web_Authoring/Image_Mapping_Tools/LiveImage.html

"Thewizard-driven interface makes creating your own imagemaps (or editing existing ones) a snap. Live Image supports GIF, PNG, and JPEG files, and includes a imagebuilding tool to let you create your own images in theprogram."

mapThis home page:
http://www.abdn.ac.uk/tools/ibmpc/mapthis/
Sinja
January 20, 2008   01:53 PM PST
 
Great post, John! This is awesome!
J f Z
January 22, 2008   03:43 AM PST
 
Thanks for your generous comments, everyone.

Jude: I should have checked Mapthis! but last I recall, it was win3.1 shareware on a floppy. Actually, I needed another excuse to extoll the virtues of the magical transparent image. My first entry about it kinda sucked. /wink!

Funny how the LiveImage! description also invokes the wizards. /tugs beard

Coincidence? I think not!
jude
January 26, 2008   01:38 PM PST
 
yeah, wee willy manages to get his, ummm, fingers into everything, one way or another. i'm shopping for a new computer system, high-end but _without_ vista. you think i can find one? ha..."you vill take vista and YOU VILL LUFF IT OR ELSE."

mac's looking might good right about now...

*exits singing* ...fish heads, fish heads, roly poly fish heads...
venugopal
February 13, 2008   05:29 AM PST
 
great post refer for some information in
www.the-company.com/
venugopal
February 13, 2008   05:31 AM PST
 
great post
anjelle
March 12, 2008   09:44 PM PDT
 
Ok, so I'm late chiming in, but...

SQUEEE! Yay! Thank you, you handsome rogue!
 

Leave a Comment:

Name


Homepage (optional)


Comments




Previous Entry Home Next Entry