Questions tagged [imagemap]

Image Map is a list of coordinates relating to a specific image, created in order to hyperlink areas of the image to various destinations. The intention of an image map is to provide an easy way of linking various parts of an image without dividing the image into separate image files.

In HTML, an imagemap is made of the actual image that is embedded with the <img> tag, and contains a usemap attribute.

The imagemap is comprised of the <map> tag and <area> tags, which defines the fields within the weblinks. These are similar to the <a> tag, defining which URL should be opened.

Example:

<img src="image.png" alt="alternative text" usemap="#mapname" />
<map name="mapname">
  <area shape="rect" coords="9,372,66,397" href="http://example.com/" />
</map>
871 questions
6
votes
3 answers

Image map by alpha channel

Let's imagine that circle.png is a 400x400 px transparent background image with a circle in the middle. What I've got now is that the entire image area (400x400px) is clickable. What I would like…
lviggiani
  • 5,824
  • 12
  • 56
  • 89
5
votes
2 answers

Clickable areas of image - even when screen changes sizes html

I am trying to learn how to make a simple website in HTML. Currently I have created a background image that image has multiple shapes on it. I want different parts of the image to be clickable links. I understand how to find the coordinates and use…
Ali
  • 67
  • 2
  • 6
5
votes
2 answers

1 image 2 links

how do you make an image be clickable in in HTML in different areas of the image and lead to different URL's... for instance I have an image or "button" if you will that is 1 image but I want it to actually be 2 links... one side of the button is…
Ryan Murphy
  • 65
  • 1
  • 1
  • 8
5
votes
1 answer

Need to find straight lines in schematic (image)

In my application I have black/white schematics with a title block in the lower right corner. The title block has several boxes (rectangles) and I need to find the coordinates of the corners of each rectangle. Note that in my application NO noise is…
5
votes
1 answer

HTML Image map with selectable regions triggering popup content

It has been a long time since I have had to do Image Mapping! Probably like 4-5 years. The last time I achieved this using the tag and creating tags for polygonal shapes. This of course works, and is still supported html, even in HTML5. Question…
BarberCraig
  • 157
  • 1
  • 9
5
votes
2 answers

define parts of an image and assign to hover,click events

lets say we have an image of human body, i want when user hover over part of body (head,arm,etc), this organ turn green and when he clicks a defined action happens. is it doable using javascript ? if so what would be the concept ? reason for…
Zalaboza
  • 8,899
  • 16
  • 77
  • 142
5
votes
2 answers

Responsive CSS Image Anchor tags - Image Maps style

I've been working on a responsive site and have come to a bit of a problem with Image Maps. It seems that Image Maps don't work with Percentage based co-ordinates. After a bit of googling I found a JS workaround -…
kabatwa
  • 69
  • 1
  • 4
5
votes
2 answers

How to color asp hotspots on an imagemap?

I have an image (the image is a floor plan for a building), and the image contains various rooms that can either be open or reserved. I have used an Imagemap and hotspots to map out the coordinates of the rooms and I am handling the onclick events…
Andrew Backes
  • 1,884
  • 4
  • 21
  • 37
4
votes
1 answer

Suggestion for creating tooltips on an image

Is there an alternative (and more elegant!) method of creating multiple tooltips on top of an image without using image maps? Preferably looking for a solution that makes use of jQuery, but not necessary. While I know solutions exist with image…
MrRay
  • 952
  • 2
  • 10
  • 16
4
votes
2 answers

Styling area tags

I have a pair of image-maps on which I want their areas to high-light when the mouse hovers over them. I am using jquery to detect the mouseover and assigning a css class. The assignment works and I can confirm the new class name. But, the area does…
sisko
  • 9,604
  • 20
  • 67
  • 139
4
votes
2 answers

What are some reasonable alternatives to an image map?

Is still the best way to handle irregular navigation menus, or is there a better way? My navigation menu looks like this:
TimFoolery
  • 1,895
  • 1
  • 19
  • 29
4
votes
1 answer

How to draw an image map with menu list hover effective?

I have facing to draw an image map with menu bar hover effetive like URL : http://www.99acres.com/paras-seasons-sector-168-noida-npxid-r6378e The matter is when I hover on menu it highlight also a portion of image alternately When I hover a portion…
Asraful Haque
  • 1,109
  • 7
  • 17
4
votes
3 answers

Is it ok to use image hotspots? Is that the best way to do it in today's world?

I have a picture that needs to be split into 4, and each part must have a link. Do people still use image hotspots?
TIMEX
  • 259,804
  • 351
  • 777
  • 1,080
4
votes
2 answers

image map: show alternate image of areas on mouseover

Let's say I want to create an interactive group photo with two mouseover-effects: a) show a tooltip above and b) highlight the person / show an alternate image. What I want to do is quite similar to this (look at Map #2) - I want the group photo…
okiedokey
  • 143
  • 12