Learn jquery - From beginners to professional, JavaScript Library

Features Offered:

Lightweight Footprint
CSS 1,2,3 Compliant
Cross-browser

LEARN, DOWNLOAD, UPLOAD, ACCESS AND SHARE JQUERY / JAVASCRIPT LIBRARY

Interactive Map with jQuery
Source : jQueryStockInteractive Map with jQuery Author Profile0 Discussions

In this script you will find out the trick for addressing your needs on you own maps. Have a try!

jQuery

Category > Plugin  |

Leave a comment +

Discussions +

David  |   Interactive Map with jQuery

16.11.2011 04:49:38   5 replys

Interactive Map with jQuery Hi Is it possible not to show this box: Choose a city The above interactive map contents the continents and cities. Please select continent through the dropdown field and view the cities details. So when the map loads up their is no black box, but when you click on a city the black box appears? Hope you can help Thanks

cancel

jQuerystock  |   I hope this works,

16.11.2011 05:02:06

If you want to hide the black box from the layout till the user clicks on the the dot (city) then please open then css file and add a line "disply:none" to the .detail_container class.

David  |   Interactive Map With Jquery

16.11.2011 05:19:56

Thats great! Thanks for the swift reply

David  |   Interactive Map With Jquery

16.11.2011 05:24:05

Hi Sorry should have asked this earlier. It would be really great if I had the ability to close the pop up black box, is this at all possible? Again many thanks for your help!

David  |   Interactive Map With Jquery

16.11.2011 05:42:57

Hi Is it also possible to close the black box once you have clicked on it? Many Thanks for your help!

jQuerystock  |   Yes why not?

16.11.2011 23:21:54

add the following script to the includes/interactive_map.js page :: $(".detail_container").click(function(){ $(this).css({"display":"none"}); });

David  |   Interactive Map with jQuery

18.11.2011 03:42:15   3 replys

Hi Many thanks for your response regarding the "Close" box feature. One thing I have noticed is that when I do close the box the page jumps to the top, I have been told that this may need a "return false" added but I am not sure where I would add this in the code? $(".detail_container").click(function(){ $(this).css({"display":"none"}); }); Can you assist? Thanks again!

cancel

jQuerystock  |   about Close bottom

18.11.2011 05:36:27

$(".detail_container").click(function(){ $(this).css({"display":"none"}); return false; });

David  |   Interactive Map With Jquery

24.11.2011 11:44:59

Hi Thanks again for your response I added this : // When a dot is clicked $('a.dot').click(function(){ $('a.dot').removeClass('selected'); $(this).addClass('selected'); var city = '.city_detail#' + $(this).attr('city'); var htmlCode = $(city).html(); $('.detail_container').fadeOut(500, function(){ $('.detail_container .city_detail').html(htmlCode); $('.detail_container').fadeIn(500); }); }); $(".detail_container").click(function(){ $(this).css({"display":"none"}); }); // end Ready }); But if I scroll the page down a bit and then click my close button it still jumps to the top of the page. Any ideas? Many thanks for all your help!

jQuerystock  |   Suggestion for the links...

24.11.2011 23:06:04

If you are applying effects or an action on a href elements of HTML then you must add return false; in the related function ends... I hope this works..try it because if that .dot class was given to an other elements like DIV or SPAN of HTML, it doesn't it doesn't take you to top of page.

David  |   Interactive Map with jQuer

06.12.2011 04:00:35   1 replys

Hi That works now thanks, last question I think regarding this. I have put a link within the HTML of the pop up, the thing is when I click on the link it closes the box but does not link to the page. How can I make it so it does both. 1. CLose the box 2. Link to a page. Many Thanks David

cancel

jQuerystock  |   Resolving your problem...

11.12.2011 23:20:37

if you want to do these things 1. CLose the box 2. Link to a page. then you should have to put a link in the a href tag with class name . and in it's script action please remove return false; if you end up the script with return false code statement then the link to the http://www.jquerystock.com will not work. thanks, but please ask if you have any questions...

David  |   Interactive Map with jQuery

12.12.2011 09:18:06   1 replys

Hi I am still struggling to get this to work, would it be possible to send you my code and you can then see where I am going wrong? Many Thanks for your help. David

cancel

jQuerystock  |   Resolving your problem...

12.12.2011 23:50:45

Contact me at email and left me know what and where you are getting errors...