Jump to content

clickable areas of an image

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
atha

atha

    Newbie

  • Members
  • Pip
  • 2 posts
Hi!

I don't know if this is the right forum, because I don't know if my reqeust should be done in Java, javascript or flash.

I have en image of a continent and I want to make et possible to click on a country. When clicked on the country is colorized or in other words the country is highlighted.

I also need to gather which areas has been clicked.

in what language can this be done the easiest?

#2
atha

atha

    Newbie

  • Members
  • Pip
  • 2 posts
oh yes, and what could the code look like?

#3
alexa

alexa

    Newbie

  • Members
  • Pip
  • 2 posts
I think that it is possible in HTML, but without a many possibilities for animations and styles. You can use map - image to make links from different parts of the same image (clickable areas of an image).
example:
<map name="[somename]">

<area href="[link1]" shape="someshape1" coords="[coordinates of image part1],[coord2],[coord3]...">
<area href="[link2]" shape="someshape2" coords="coordinates of image part2".........>
<area href="[link3]" shape="someshape3" coords="coordinates of image part3"........>

</map>

<img src="[yourimage]" usemap="#[name]">:)