Insert multiple links on single image of SharePoint pages

Today I am going to explain how to insert links in an image with respect to the position of the image. Say for an example: In FB, we will have a tag on photos. In any location or a specific part of the image, we do tag a person. Similarly, we can refer a link to the image when they click on a specific part of the image.

To implement this first,

1. Create a site page in the SharePoint 2013 site.

2. Insert an image in the page.

Then we have to write code to display links on the page.

3. Open the page in designer and give a propety usemap=”#country” in the image tag.

ex:

<img alt="globe.png" src="/teams/CreditPoint32/1.5.2Site/SiteAssets/SitePages/Test2Page/globe.png" usemap="#country" style="margin:5px;" />

Now add rectangle, circle and polygon shape of links to cove a part in the image.

In the above image we have countries. To insert links to specific country when we click on the “ASIA” or any other country in the image

Add rectangular type of mapping in the page (Below <img> tag

<area shape="rect" value="multireg" coords="69,20,270,79″ href="http://www.google.com">
<area shape=" rect " value=" america " coords="12,265,80,80″ href="http://www.google.com">
<area shape=" rect " value=" asia " coords="332,260,255,80″ href="http://www.google.com">
<area shape="rect" value="europe" coords="69,320,270,268″ 
 href="http://www.google.com">

You may like following SharePoint tutorials:

This we can find hot spots and give links to navigate the location. Hope this will help you in your development

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>