issue on creating image maps

Discussion in 'Programming' started by nanhubia, Dec 12, 2011.

  1. nanhubia New Member

    Member Since:
    Nov 29, 2011
    Message Count:
    23
    Likes Received:
    1
    An image map is a way of defining "hot spot" links within an image on a Web page and you can have lots of different links within the one image.So i was wondering how to create image maps using HTML? Can you guys help? Thanks a lot.
  2. Elia Member

    Member Since:
    Nov 17, 2011
    Message Count:
    32
    Likes Received:
    2
    Location:
    Timisoara
    You have to define a shape area (or a couple of) with its coordinates and then assign it a speciffic link, like this:
    <img src="img.jpg" usemap="#family tree" border="0">
    <map name="family tree">
    <area shape="polygon" coords="19,44,45,11,87,37,82,76,49,98" href="...">
    </map>
    Adam H likes this.

Share This Page