How to create Interactive map which changes colors/texts upon hovering with a mouth..

Discussion in 'jQuery' started by eritrea1, Jul 15, 2012.

  1. #1
    Hi all,

    Just like the title said, it I need to know how to create or find a tutorial for creating, .. A map of a country in which, when a user hovers on different territories inside that country, those territories would have to simply change colors. In many ways, it is similar to the hover function in java script, but javascript hover function can only work with pictures ( at-least to the best of my knowledge i.e. ) That, would be a problem, because I can only use square images.


    Any help would be appreciated.
     
    eritrea1, Jul 15, 2012 IP
  2. stefek99

    stefek99 Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <area shape="poly"             coords="74,0,113,29,98,72,52,72,38,27"
    Code (markup):
    I think you can specify areas other than squares...
     
    stefek99, Jul 25, 2012 IP
  3. tdjprj

    tdjprj Greenhorn

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    There are many online mapping tools which can do what you need quickly, take a look at iMap Builder Online which let you use a pre-built world countries template, Google map, or even let you import a custom JPG image, and then define your own clickable areas. It would be much faster for you to use such tool if the map is just part of your website project.
     
    tdjprj, Aug 15, 2012 IP
  4. artus.systems

    artus.systems Well-Known Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    103
  5. infotripro

    infotripro Member

    Messages:
    26
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    43
    #5
    Here you have the functionality you're looking for, just take a look at the javascript
    http://www.info-trip.ro


    You'll need to create polygons for that.
     
    infotripro, Aug 29, 2012 IP