Hello, i have a problem with a craftmap (http://www.jscraft.net/plugins/craftmap.html
I need to go to a specific location map from a link in an external html..
Now
pay attention thisHTML Code:<title>Mapa España</title> <link href="css/default.css" rel="stylesheet" type="text/css" /> <link href="css/demo1.css" rel="stylesheet" type="text/css" /> <script src="js/jquery.js" type="text/javascript"></script> <script src="js/craftmap.js" type="text/javascript"></script> <script src="js/init.js" type="text/javascript"></script> </head> <body> <div id="content"> <div class="relative"> <div class="demo1"> <img src="Mapa_esp.png" usemap="#Map" class="imgMap" /> <map name="Map" id="Map"><area shape="circle" coords="962,409,9" href="#" alt="" /></map> <div class="marker" id="castellon" data-coords="1080,465,558,255"> <h3>Castellón</h3> Ficha de Castellón<p> <a href="castellon.html">Ver Ficha</a> </div> </div> <div class="controls"> <a href="#" rel="castellon">Castellon</a> </div> </div> </div> </body> </html>
It is a DIV with a button that when you click takes you to id = castellon, the map is located at that point and opens an information box.HTML Code:<div class="controls"> <a href="#" rel="castellon">Castellon</a> </div>
What I get is that through a link on another page that go to that point and open.
I tried:
HTML Code:<script> $(document).ready(function (){ window.location=$("#castellon").get(0).href; }); </script>but not works.. Any solution?HTML Code:<script> addLoadEvent(function(){ mostrarcastellon(document.getElementById('castellon')); }); </script>
Sorry for my English...


Reply With Quote
Bookmarks