Scripsit vunet:
Quote:
How to make an interactive map without Flash?
|
In pure HTML, you can set up a client-side image map, which apparently
has been suggested to you. Using HTML and server-side scripting, you can
set up a server-side image map, though it's usually an inferior solution
for selecting between areas (opposite to selecting an arbitrary point).
Quote:
I want to move mouse
over each continent and see it changing its color but when clicked it
would send some action to the DOM.
|
The first part is difficult. The second part ("when clicked - -") is
basic functionality of client-side image maps, except that a click
primarily sends the browser to a specific URL, but you can add to this,
or override this, by an onclick="..." attribute on an <areaelement.
Quote:
Someone offered me to make a few images with each continent
highlighted and when user moves mouse over a different continent, a
new image is replacing older one (with another continent highlighted).
|
That's possible. You could have an onmouseover="..." attribute in an
<areaelement, and the script invoked could e.g. change the image.
Unfortunately, it is no possible to change just the area; you would
indeed need to change the entire image to a variant that has the area
highlighted.
Quote:
The map would have coordinates linked in <AREAtag.
|
Yes, and technically the area would be described as a polygon, coarsely
or smoothly, depending on how many points you care to include there.
Quote:
To me this does not seem to be a great solution.
|
It's not, but it works, with some caveats, and it's used on many pages.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/