Use Image Maps to Add Link Hot Spots in Your Graphics

by SBA on November 25, 2009 · 33 comments

Tired of boring text links? Need to save space in your sidebar? Then consider an attractive image with more than one hyperlink spot. You've seen corporate sites with maps where you pick a city or state for local information. Another example is a painting of prominent 18th century figures seated around a table. Click each face to see that person's wiki-page pop up.

In this tutorial you'll learn how to map hot spots onto images for WordPress.org or Blogger blogs. Doing this can spice up your design and beef up your blog's navigation. Remember, "a picture is often worth a thousand words"!

Roll your mouse over the admittedly action-packed graphic below to see the clickable regions. Imagine someone arriving on BWS to learn how to do something with 125 x 125 ads, display a new grab button or manipulate an image. The clickable graphic lets them find the question they want answered or spot the scroll box they're looking to create. The alternative is doing a search and reading several posts in the results list, hunting in the Archives or just leaving empty-handed.

grab-button-hotspots

sample-circle

(before hot spots)

A Sample for the Tutorial

The sample on the right is a bit more manageable for most uses. It would grab your reader's attention and allow them to click on one of three links. The browser then opens the page with the appropriate article or categories list.

Step 1: Design the Graphic

There are many packages that let you create photo/text images like the sample above. Of course, you can use PhotoShop (quite expensive) or the free software at Gimp.org. GIMP is a "feature-rich" open source program that lets you compose and manipulate images.

I used the software that came with my MS FrontPage years ago. It still works. You can download it free at MS Image Composer.

image composer toolbar

  1. Determine the width and height of your image. This ensures that it will fit in your sidebar without resizing. Once the hotspots are created, you cannot resize the graphic. Hot spots work off coordinates within the image.
  2. I used the shapes button (6th on the bottom ) to create two circles of the same size. Set the color using the first color swatch button, then create one circle in turquoise. Set the color to black for the second circle.
  3. Overlap the two circles with the black, creating a shadow effect. Use the "Arrange" button on the menu to move the turquoise circle to the top.
    two circles overlap
  4. Create text using the 5th button from the bottom of the tool bar. The color swatch in the pop-up window lets you change the text color to blue, red or black for this example. To make the blue text resemble a wave, press Tools, Effects and scroll over to Wave. Click the "details" tab to change the wave frequency, amplitude (I used 50%) and axis (used Y only).
  5. Position the three text images within the overlapping circles and save on your computer as a jpg image.

Step 2: Add Hot Spots to Graphic

For this step you need advanced software to define the position of the links and create the html needed within your blog. You can use:

  • MS FrontPage
  • DreamWeaver
  • Photoshop (see this article for details )
  • GIMP (has a plugin for image maps)

If necessary, call in a favor from one of your friends who may have the software. Actually, it takes very little time to do what's needed and copy the html code. I used FrontPage. Before you start, be sure to have the urls for the three links handy. (Open them in windows so you can copy the links as needed.)

  1. Open a new page. Use toolbar to Insert, Picture from file (the graphic you saved on your computer from Step 1).
  2. Right click the image to select the "pictures toolbar" pictures toolbar - these are the buttons to draw hot spots: The rectangle, circle and polygonal (free form).
  3. Select the image, press the third button for the polygonal tool. A pencil lets you draw sloping lines around the words "Create Your Blog." Release the drawing, and a window pops up to let you insert the hyperlink. Copy and paste the correct blog page's url . In our case, it's the contents category.
    hyperlink-create
    Do the same for "Grow Your Blog and "Customize It". Use the first button, rectangle to map the hot spots and paste hyperling addresses.
  4. Click "show code" at the bottom of the FrontPage window. Copy all the html that defines the paragraph with the coordinates map. In our example it looks like this:
    <p><map name="FPMap0">
    <area href="http://bloggingwithsuccess.net/category/promotion-traffic-branding" shape="rect" coords="47, 73, 170, 93">
    <area href="http://bloggingwithsuccess.net/category/design" shape="rect" coords="26, 97, 122, 114">
    <area href="http://bloggingwithsuccess.net/category/content" shape="polygon" coords="8, 40, 62, 47, 136, 25, 169, 45, 165, 64, 8, 64">
    </map>
    <img border="0" src="../Desktop/Clickable%20regions/sample-circle.jpg" width="179" height="134" usemap="#FPMap0"></p> 

Step 3: Add the Image/Code to Your Blog

The last step is the easiest. You just create a widget with the code for the image map and the actual graphic.

  1. Go to Wp.org or Blogger dashboard. Add a html widget. Paste the code you saved in Step 2.
  2. Upload the jpg image from Step 1 to an online service like Photobucket, or directly to your media files or a temporary Blogger post. Save the image location address.
  3. Change the last statement in the Step 2 code to show the actual url of your image. In our case, it's
    "http://bloggingwithsuccess.net/wp-content/uploads/2009/12/sample-circle.jpg"
  4. Preview and save. Verify that all the hot spots bring up the pages you expect. This is our sample with links activated:

    Hot Spots Activated

Notes: Additions and Alternatives

Provide alt text for people using text only browsers

You can also edit the image map html to add "alt" tags on each clickable region. Doing so helps anyone who doesn't see the image, by providing text hints. Place the tag at the end of the the hot link addresses, leaving a space. For example,

...category/content" alt="create your blog"

Online services which provide image mapping only

I did find a couple of free online image mapping sites for getting most of what you need in Step 2. This may be a good alternative for getting the specific map coordinates. Then use the format from FrontPage to add your links and name your image map.  The online service may require more effort but, hey it's free.

  • Image Maps -Seems easy to use. They gave coordinates of 51, 68, 168, 90 for 'grow your blog', which was very close to what I drew in FrontPage:     47, 73, 170, 93
  • Image Map Editor - adds credit line to the code.

Be creative and don't forget to come back to leave a comment about your experience with this technique. Add any other ideas for using image maps.

4 Reasons For Subscribing
  • Get Full Posts Delivered Directly To Your Inbox.
  • Get Exclusive Freebies For Subscribers.
  • No "Buy This, Buy That" Mails!
  • 100% Privacy. Your EMail Address Will Never Be Shared With Any Third Party.
About Writer [Blogging With Success]About Author SBA is a web designer and co-founder of BloggingWithSuccess. She publishes BPWebNews a place for many Blogspot tips and tricks. You can also find her on Twitter. Read SBA's other posts. She's also published a couple of guest posts.

{ 28 comments }

Vern August 3, 2011

T-H-A-N-K- Y-O-U ! ! !

Kulsum at JourneyKitchen January 30, 2011

Hi,

I have been reading quite a but on image map today and I’m stuck here.

I made an image map on adobe imageready, checked the preview and it works fine. Then I copied the code it provides and also uploaded the image on flickr. Took the link and copied it onto the code. Some suggested I remove a line in the imageready about “imageslices” and I did that too. Now when I uploaded the code onto the HTML gadget for blogger, I can’t see the picture but the can click on the different parts of the picture for the links. I mean the pictures is not showing but the links are. I don’t knw what I’m doing wrong. On imageready, I saved the picture as .gif and then uploaded it onto flickr. Do you think I shd save picture in any other format like jpeg ? There’s also other files like .map and .html what should I be doing with those? Please help
thank you

SBA January 31, 2011

I’d like to help but need to see the code. I’ll send my email so you can respond.

Kulsum at JourneyKitchen February 3, 2011

Thank you so much Shirley for your mail! It helped ALOT. Infact I’ll be using image maps probably for my banner designing so thanks for that too. You rock :-)

SBA February 4, 2011

Glad I could help! Thanks for your kind words.

Alex Whinfield October 8, 2010

Great post SBA, Thanks for sharing :)

SBA October 9, 2010

glad you like it. I'd like to see how you apply it!

danny September 11, 2010

I like the idea. I was actually searching for a plugin that can do same on word press. My idea is to have images on my fashion magazine wordpress weblog do something like pixazza but directly linking on my own webstore or to a network of online shop owners within my 'community'

Any ideas ?

sba September 12, 2010

Hello Danny,

I don't know of any WP plugins for this. I did come across a web development (offline) editor that you may want to research: http://ckeditor.com/what-is-ckeditor
Also there is a plugin for the free GIMP development tool. Good luck.

Gabel89 May 23, 2010

great advice ! 10x !
.-= Gabel89´s recent undefined ..If you register your site for free at =-.

SBA May 24, 2010

Welcome. and thanks.

Tinh December 1, 2009

Nice tip. I also like your Thesis theme too

SBA December 2, 2009

Hi Tinh. I appreciate the feedback. By the way, your Thesis customization 'ain't too bad either!' LOL

the transformers toy November 30, 2009

Cool!!This is really informative for blogger like us.

Thanks for sharing it.

SBA December 1, 2009

Thanks for visiting. Do you have ideas to use this and on which blog — the transformer one has a few pages all on the menu and no blog posts.

steppinout November 30, 2009

WOW! Really nice tips. Thanks for sharing. Will try it soon

SBA December 1, 2009

I look forward to seeing your ideas. I see your BlogCatalog discussion is keeping you active. Hope you find a long list of bloggers who have customized Thesis. Good chance to share.

steppinout December 1, 2009

Yup. Searching for a fresh ideas. :)

RedCafe November 28, 2009

Very useful post, thanks. I will try this and then come back to share some results…

SBA November 28, 2009

You're welcome. Please do return so we can take a look. May I suggest you move your subscribe "If you enjoyed the post, make sure you subscribe to the RSS feed…" out of the footer and into a Blogger post template. If it appears at the bottom of each post you may get more readers.[ - find the feature under Blogger Settings, Formatting and "Post Template" section.Type text/images to pre-format new posts. This avoids typing each time and acts as a reminder. You can always change or delete anything. ]

Also look at our promotions tag for ways of getting traffic/more subscribers.

You could also test out the 'read more' feature which gives you excerpts on homepage and less paging by the visitor. See my blogspot blog for tutorial.

George Serradinho November 27, 2009

Thanks for the tip, I have seen this on a few sites and it's a nice feature to have. I haven't tried it out yet, but I think I should maybe give it a bash and see If I can get it to work on my blog. I have a few ideas where I can implement this.

BTW, I will be adding this post to next week Monday roundup. I'm sure my readers will also want to try it out.

SBA November 28, 2009

I'm flattered to be on your roundup! Be sure to let us know when you implement your ideas and what tools you used.

VirTual SyNapSes November 26, 2009

This is excellent! I think this is very useful too when you want to design a special page on your website. You can use a large image and put all the stuff you want in there i.e. outbound links, archives, individual articles, homepage, etc. Oh my, you just gave me a good idea. Wahoo!!!

SBA November 28, 2009

Ryhen, we miss you! Not to mention your guest posts. But I understand it's a fulltime job pouring your heart(mind) into one blog! I look forward to seeing your ideas and glad I could be the inspiration triggering your synapses …

Learn Creative Visua November 26, 2009

I hope you are aware that Front Page was discontinued by Microsoft and the "free" image composer you suggest, is rated unanimous one star by all reviewers.

SBA November 26, 2009

Welcome Avraham, Thanks for pointing this out.

Yes, I should have mentioned that Microsoft no longer updates FP — you can buy their Expression Web Design as a replacement (based on FP and Visual Studio). Nonetheless, I'm not advocating purchasing FP. If you have it as I do, then it works perfectly for image mapping. I also use it for minor updates and publishing to a couple of basic web pages; but I am campaigning to move them to Wordpress soon! Feel free to try the alternative online image map services.

Not aware of the site that has the ratings for MS Image Composer. But I use it almost daily for manipulating photo composites, adding text to image for blogs and other design tasks. So if you know how to use it, I'd say it's fantastic. I advocate using it while you can and save up for Photoshop or learn Gimp. Photoshop seems complex to me, but it's all about investing the time to learn the software. No question, a fulltime graphics designer needs the power tools like Photoshop.

Creative Junkie November 26, 2009

What a great post! I always wondered what an image map was – now I know! Definitely more eye catching that the traditional text link, that's for sure.

SBA November 26, 2009

Glad you found it 'educational.' I hope you have a chance to try it out with Photoshop. Let us know…

{ 5 trackbacks }

Previous post:

Next post: