www.webdeveloper.com
Results 1 to 3 of 3

Thread: how do i add 2 or more links to one image map?

  1. #1
    Join Date
    Apr 2009
    Posts
    1

    how do i add 2 or more links to one image map?

    ...need some advice...

  2. #2
    Join Date
    Oct 2005
    Posts
    177
    Some software (like Dreamweaver) will help you do this in a WYSIWYG format. Or are you hand-coding?

    In which case, it would be something like:

    Code:
    <img src="largeimageformap.jpg" alt="Image Map Large Image" width="400" height="400" border="0" usemap="#Map" />
    <map name="Map" id="Map">
      <area shape="rect" coords="27,156,73,203" href="link1.htm" />
      <area shape="rect" coords="92,148,158,206" href="link2.htm" />
      <area shape="rect" coords="173,137,228,202" href="link3.htm" />
    </map>
    eCat
    Last edited by eCat; 04-23-2009 at 03:16 PM.

  3. #3
    Join Date
    Apr 2009
    Location
    UK
    Posts
    1
    Each line of <area...> is like a new shape and link being added on the image.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles