English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have attached a map to my site, and would like people to click on different parts of it and have different property information pop up, depending on which part of the map they click. I know I have seen a tutorial explaining how to do this... but I can't remember where I saw it....

2007-06-14 09:57:38 · 3 answers · asked by torylocker 2 in Computers & Internet Programming & Design

3 answers

if you have a map of some sort, I would use the google maps api.

http://www.google.com/apis/maps/

This should help

2007-06-14 10:00:11 · answer #1 · answered by Anonymous · 0 0

Getcher self a copy of a good graphics program that can show you the x/y coordinates of where you're pokin' yer cursor when you look at the image. Call up the image. Zoom in. It's by far easier for my explanation and your efforts if we deal with rectangles, so click on the upper left corner of an area, write the x and y of its point (in pixels) then click the lower right and note that, too. Do this again for each spot you want clickable.

For the html, code ...

... then elsewhere place ...


...


with one
statement for each set of coordinates

There are ways to set up coordinates for circles or polygons too, but let's not try patiences in long-winded typing.

2007-06-14 10:10:58 · answer #2 · answered by fjpoblam 7 · 0 0

Here's the google search results:

See which one is best for you.

http://www.google.com/search?q=clickable+regions+in+an+image&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

2007-06-14 10:01:29 · answer #3 · answered by powhound 7 · 0 0

fedest.com, questions and answers