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?
clickable areas of an image
Started by atha, Apr 16 2010 01:55 AM
2 replies to this topic
#1
Posted 16 April 2010 - 01:55 AM
|
|
|
#2
Posted 16 April 2010 - 01:56 AM
oh yes, and what could the code look like?
#3
Posted 16 April 2010 - 03:27 PM
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]">:)
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]">:)


Sign In
Create Account

Back to top









