473,503 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clickable map of a country

Hi

I need a map of a country on which a region( part of the map) can be
clicked ( or on mouseover) causing, on another part of the same page,
the appearance of information regarding the region.

I know how to show the information based on another part of the page,
but I don't know how to make a map of a country clickable ( meaning,
clicking different part of the map to show info on the page).
How can I make a map of a country with different clickable regions?

Regards

Jul 23 '05 #1
9 9572
Lando Chez wrote on 27 jun 2005 in comp.lang.javascript:
I need a map of a country on which a region( part of the map) can be
clicked ( or on mouseover) causing, on another part of the same page,
the appearance of information regarding the region.

I know how to show the information based on another part of the page,
but I don't know how to make a map of a country clickable ( meaning,
clicking different part of the map to show info on the page).
How can I make a map of a country with different clickable regions?


<map name="myMap">
<area shape="rect" coords="182,30,506,111" nohref
onMouseOver="show(1)">
<area shape="rect" coords="1,111,70,241" nohref
onMouseOver="show(2)">
.........
</map>

<img src="/images/map.jpg"
usemap="#myMap"
onMouseOut="endshow();">
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #2
"Lando Chez" <go********@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi

I need a map of a country on which a region( part of the map) can be
clicked ( or on mouseover) causing, on another part of the same page,
the appearance of information regarding the region.

I know how to show the information based on another part of the page,
but I don't know how to make a map of a country clickable ( meaning,
clicking different part of the map to show info on the page).
How can I make a map of a country with different clickable regions?

Regards


Creating Image Maps
http://www.elated.com/tutorials/auth...tml/imagemaps/

"For example, if you wanted the user to choose a country from a world map
image, you could use the server-side script to calculate which country was
clicked on, and then display information about that country."
Jul 23 '05 #3
Hi

Thank you for the code. Can you explain to me what the coordinates
stands for in the coords="182,30,506,111" part?

regards

Jul 23 '05 #4
Lando Chez wrote on 27 jun 2005 in comp.lang.javascript:
Thank you for the code. Can you explain to me what the coordinates
stands for in the coords="182,30,506,111" part?
Please always quote. This is usenet, not email, and others want to follow
too.

I wrote: <area shape="rect" coords="182,30,506,111" nohref
onMouseOver="show(1)">


Left, top, right, bottom position in pixels, I think, try it.

Also shape="poly", with multiple points is usefull.

<http://www.htmlcodetutorial.com/images/_AREA_SHAPE.html>

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #5
The easiest way to create a big imagemap, like one with the a map of
the US, and 50 regions is to use a program like Dreamweaver. Frontpage
or GoLive can probably do it too, but I've never tried. I normally
code everything by hand, but imagemaps just take way too long to do by
hand.

Jul 23 '05 #6
>I need a map of a country on which a region( part of the map) can be
clicked ( or on mouseover) causing, on another part of the same page,
the appearance of information regarding the region


Have a look at this http://www.vmm.be/geoview/

And have a look at the page-sources.

Jul 23 '05 #7
Hi

Thank you very much for the link. With the tutorial I created my own
image cool. It looks realy cool!!!

Jul 23 '05 #8
JRS: In article <Xn********************@194.109.133.242>, dated Mon, 27
Jun 2005 11:16:17, seen in news:comp.lang.javascript, Evertjan.
<ex**************@interxnl.net> posted :
Lando Chez wrote on 27 jun 2005 in comp.lang.javascript:
Thank you for the code. Can you explain to me what the coordinates
stands for in the coords="182,30,506,111" part?


Please always quote. This is usenet, not email, and others want to follow
too.


Please always, at least until it is in the FAQ, explain the way to do it :

If you find that, when you start a News reply, Google does not provide
the previous article in quoted form, note what Keith Thompson wrote in
comp.lang.c, message ID <ln************@nuthaus.mib.org> :-
If you want to post a followup via groups.google.com, don't use
the "Reply" link at the bottom of the article. Click on "show
options" at the top of the article, then click on the "Reply" at
the bottom of the article headers.

Since that is what the experts in this newsgroup prefer to read, it will
be to the OP's advantage to comply.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Jul 23 '05 #9
Dr John Stockton wrote on 28 jun 2005 in comp.lang.javascript:
If you want to post a followup via groups.google.com, don't use
the "Reply" link at the bottom of the article. Click on "show
options" at the top of the article, then click on the "Reply" at
the bottom of the article headers.


Slightly OT:

I found that the Google Groups reply buttons cease to exist
on mail older than a certain age!
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
4896
by: Kerberos | last post by:
I followed Dan Cederholm's image replacement tutorial, to replace a header tag by a logo. The h1 is clickable if no CSS is applied but it I replace it by the logo, the area isn't clickable anymore...
12
6310
by: Ted Weatherly | last post by:
Is it possible to create a clickable time zone map on a web page? Is it as simple as finding an image of world time zones and declaring a bunch image map coordinates? Has someone already done...
9
2709
by: Paul W | last post by:
I'm using a Table webcontrol to display a 'grid' to the user. Various cells should be 'clickable' by the user (to run javascript). How can I make this happen? (currently I use the background cell...
0
1163
by: Showjumper | last post by:
I have seen the article on 4 guys that descibes creating an event calandar. However what i would like to do is have the days be clickable (i.e. click the day and it show the details for that event)...
3
4740
by: Henrik | last post by:
I need to get a list of clickable objects on the desktop and their positions. I have written a small program in C# and by using the Win32 function: WindowFromPoint -function I get a handle to the...
1
5697
by: =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?= | last post by:
The URL is: http://dardel.info/tintin/random.html What I want to achieve: When you click a thumbnail, a window opens with a larger copy of the pict _as the background_. I want the new window...
7
2608
by: Jeff Gaines | last post by:
I have spent the day learning how to use Zend Development Environment. I can now produce a list of files in a directory, filtered by extension, and apparently clickable. Unfortunately clicking on...
3
5546
by: crazychrisy54 | last post by:
Hi there I just wondered if there is any way using GD to insert a clickable button or some clickable text into a image? It is possible to create images for buttons but what if you want a...
3
5774
by: zb42 | last post by:
I have a _mc that I've added to the stage. On it's layers first frame I have this code that spins the _mc around and has some great effects: import fl.transitions.*; import...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.