Please look at my map - it needs some minor fix maybe; cannot find solution!

Discussion in 'jQuery' started by Funner, Feb 17, 2011.

  1. #1
    Hi All!
    I have a map which uses JQuery here: http://www.xyod.com/wp1/map/
    functionality is simple; when you click pn a name on the left side, a red area appears on the map; when you click on a red area on the map the name on the left is highlighted;
    For names composed by a single word, it is simple and works; for names of two words I added some javascript which seems to work
    for name like this: "Name/Name Other name" ; there is the problem;
    I only made the first 26 names to work; but the first name on the second column is the complicated one which does not work at all;

    so this is uses Jquery and then the scrept in /js/ folder called nav.js and the also uses the css file and also mg-map1-name-changes.js file

    Can you please check, especially the js files ad source code and tel what is wrong?
    basically, when a name is composed by two words I tried to replace the space with "_" ; but does not work for the more complicated names like mg-map1-name-changes.js ; basically, the name on the left needs to be identical with the css class of the correspondent red map area, of the map image area etc;
    Thank you! Any help would be great!
     
    Funner, Feb 17, 2011 IP