473,549 Members | 2,243 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 9583
Lando Chez wrote on 27 jun 2005 in comp.lang.javas cript:
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="sh ow(1)">
<area shape="rect" coords="1,111,7 0,241" nohref
onMouseOver="sh ow(2)">
.........
</map>

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

Jul 23 '05 #2
"Lando Chez" <go********@hot mail.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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.javas cript:
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="sh ow(1)">


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

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

<http://www.htmlcodetut orial.com/images/_AREA_SHAPE.htm l>

--
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.10 9.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.javas cript:
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.or g> :-
If you want to post a followup via groups.google.c om, 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.demo n.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.javas cript:
If you want to post a followup via groups.google.c om, 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
4910
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 when I pass the mouse over the logo. Is there a way to replace a link by an image that will still be clickable? Thanks, -- Kerberos.
12
6318
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 this? -Ted
9
2712
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 color to indicate to the user which cells are clickable). (I think I could achieve this by adding an image (with attached hyperlink) to each...
0
1165
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) only if there is an event on that day while other days are not clickable if there is no event. I have see the post on scottonwriting about...
3
4744
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 desktop but now I'm stuck. For those who need to see the code -look below IntPtr hWnd = Win32.WindowFromPoint(Cursor.Position); With the...
1
5707
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 to close when clicking anywhere on it. Both the background of the window and the caption are produced by Javascript, but the probleme is not here.
7
2625
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 them in a browser doesn't take me to the file link. I have found examples for clickable URL's, FTP links and mailto addresses but not files. I am...
3
5552
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 clickable button *inside* another image. I don't know if this is along the right lines but the following code puts a image inside another image. Perhaps...
3
5776
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 fl.transitions.easing.*; TransitionManager.start(img4_mc, {type:Zoom, direction:0, duration:3, easing: Bounce.easeOut}); TransitionManager.start(img4_mc,...
0
7546
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7471
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7985
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6071
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5111
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3496
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1962
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
784
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.