CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 USA Map

Print topic Send  topic

Author Message
Gerry
Posted: 10/08/2003, 9:35 PM

Howdy folks!

I've seen some sites where a user can click on a State of the USA on a Map to go to a particular state.

Is there something like this that I can buy like an Active X control?

TIA,
Gerry
Admin - CodeChargers
Posted: 10/09/2003, 3:29 AM

Why not just edit the page containing the map is say.. .Dreamweaver and create 'image - Hot Spots' and then add the URL to the 'Hot Spot' linking up with your particular page per State?

Then when any one clicks on a State it will direct them / call up the other page.

Regards
Admin - CodeChargers
http://www.CodeChargers.com
RonB
Posted: 10/11/2003, 12:08 AM

Use Daves advise. I used fireworks to do the same for my daughter. She has to learn the topography of the Netherlands and Europe and has some maps on wich countries, important cities, rivers etc are drawn. I used fireworks to create the hotspots and php and mysql to first input all the names for a link and second to practice learning the cities etc by heart. She was very satisfied that all those ours dad is spending behind his computer also delivered something she can actualy use.

Ron
Ashiff
Posted: 10/16/2003, 12:38 PM

Hi,

I recently neede the same for India and I did it very easily,

I needed the following,

a map of India ( i hope you have your map or else download it from anywhere, I have seen plenty),

a good image map( HTML code) generator. You may download the best and free one from http://www.stockholm.bonet.se/meracl/mimg.htm which is really good.

Now the regions are formed. what if you wanted a menu style where you might want to provide options, then I suggest you to go to www.milonic.co.uk where you have the best DHTML menu available. IF it is personal then it is free else pay 22 pounds as commercial usage charges.

In milonic you might have an example of map style menu which will be great to use.

Reply back if you are happy with the answer
Gerry
Posted: 10/18/2003, 8:13 PM

Hi everyone! Thanks for all your replies.

What I really need to do is run a query when a user clicks on a particular State on the USA Map.

For example, if a User clicks on California, a results page will show-up listing all the Banks in California.

I wouldn't want to create a separate page for each state.

TIA,
Gerry

Ashiff
Posted: 10/19/2003, 5:35 AM

Hi,

What you have asked is very simple.

One of HTML TAG is IMAGE MAP, if you are not aware of it then refer to google.

Let us use that in the example

create a page with a grid. add a where clause to the grid with statename parameter.

now create the HTML IMAGE MAP Tag.

Let us say that the page you want to open is abc.php, parameter is s_state, in the grid you have made state(database column name) equals s_state.

Now your HTML image map tag will be something like this

<img src="indiastates.gif" usemap="#1" name="VSNL Voice Network" border="0" align="absmiddle">
<MAP NAME = "1">
<AREA href="abc.php?s_state=arizona" SHAPE = "RECT" COORDS = " 161, 157, 216, 172">
<AREA href="abc.php?s_state=ohio" SHAPE = "RECT" COORDS = " 149, 112, 220, 125">
<AREA href="abc.php?s_state=texas" SHAPE = "RECT" COORDS = " 95, 202, 152, 219">
<AREA href="" SHAPE = "RECT" COORDS = " 69, 263, 157, 279">
<AREA href="" SHAPE = "RECT" COORDS = " 79, 334, 141, 353">
<AREA href="" SHAPE = "RECT" COORDS = " 342, 277, 403, 294">
<AREA href="" SHAPE = "RECT" COORDS = " 227, 203, 284, 216">
<AREA href="" SHAPE = "RECT" COORDS = " 173, 378, 250, 394">
<AREA href="" SHAPE = "RECT" COORDS = " 90, 459, 163, 477">
<AREA href="" SHAPE = "RECT" COORDS = " 189, 469, 255, 489">
<AREA href="" SHAPE = "RECT" COORDS = " 126, 504, 201, 520">
<AREA SHAPE = "DEFAULT" NOHREF>
</MAP>



   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.