Post to Twitter

Image map is pretty much similar to CSS Sprites. Image mapping can be used to add multiple links to a single image. This will be useful in many areas of web designing.  You can just have a look at “FIND US” image on the right, as an example which we have in our page. Image mapping is very easy to make and you need not be a tech savvy to make one for your own. There are excellent online tools available for creating the code for your custom Image mapped. Today, I’ll show you how to easily create an image with multiple links using one such image mapping tool online. In this tutorial I will be using maschek.hu for creating the code for the custom image with multiple links.

Step 1:

Firstly create or find an image which suites your needs. In this tutorial I’m using an image for social networking icons.
find us on

Step 2:

Open this link and upload your image, or enter the url of the image or you can also try a sample image available in their library and then click on “accept“.

image mapping tutorial

image mapping tutorial upload part

Step 3:

Now select output as “STANDARD IMAGEMAP” or CSS IMAGEMAP according to your choice. In this tutorial, I’m selecting Standard Imagemap. And you can select the mapping style as rectangle, since our image is in rectangle. You can simply ignore the other settings as it is not much necessary for our image type.
image mapping tutorial css sprites

Step 4:

Now that we have done editing the appropriate settings for the output, we can now start mapping the image. Point your cursor on to the image and then click once on the edge on the first icon (Facebook) to be mapped, and then draw a rectangle which covers the entire Facebook icon and then click again to complete mapping. I hope the below image helps.
mapping images

Step 5:

Now that we have mapped to the appropriate dimension, we can now insert link in that area and select appropriate link target properties.
image mapping tutorial linking

Step 6:

Repeat the same steps for the other 2 images and then click on CODE at the end, to get the entire code and then copy the code.image mapping tutorial final code

Step 7:

Now we have the image mapped code and lets proceed to the final step in this tutorial. The only thing left to do here is to link the imagemap id with the image code.

<map id="imgmap2010615205439" name="imgmap2010615205439"><area shape="rect" alt="" title="" coords="64,59,211,112" href="http://www.facebook.com/pages/Techgyo-TechBlog/106695996033403" target="_blank" /><area shape="rect" alt="" title="" coords="61,124,206,164" href="http://www.twitter.com/TechGyo" target="_blank" /><area shape="rect" alt="" title="" coords="60,174,214,208" href="http://www.linkedin.com/groups?about=&gid=3010428&trk=anet_ug_grppro" target="" /><!-- Created by Online Image Map Editor (http://www.maschek.hu/imagemap/index) --></map>

The above code is the code which we created using online image mapping tool and it will be having a unique imagemap id. We can now link the map id with the image code.

<img usemap="#imgmap2010615205439" src="http://techgyo.com/wp-content/uploads/2010/06/find-us-on2.jpg" border="0" alt="Find us on Facebook, Twitter, Linkedin, Youtube and Flickr" />

The final image is the one below, just have a check at the links.
Find us on Facebook, Twitter, Linkedin, Youtune and Flickr

Here’s the video tutorial

Test your code using this tool here

If you liked this tutorial, please leave your comments below.

Incoming search terms:

how to multi hyperlink an image plugin android image map click highlight make map image with point on php mapping image like facebook maschek hu image area selector maschek hu/imagemap/ multi link image multiple hyperlinks from one gif multiple image map list javascript multiple image mapping in one image

Post to Twitter

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Sreejesh
Written by

+Sreejesh Editor in Chief of TechGyo.com. He’s also a web developer/designer who specializes in front-end development (JavaScript, HTML, CSS). If you’d like to connect with him, head on over to the contact page. You can follow him on Twitter @sreejeshsuresh Facebook