I have a problem in displaying a map on the internet explorer and map display well but the problem is that it is not clickable here is my code thank you for your reply
Code:
<script language="javascript" type="text/javascript">
function accendi(regione) {
document.getElementById('tunisie').src = "<?php echo JURI::root();?>modules/mod_prop_search_js/images/blu/tunisie-tunisie.png";
var imm = "<?php echo JURI::root();?>modules/mod_prop_search_js/images/blu/tunisie-" + regione + ".png";
document.getElementById('tunisie').src = imm;
}
function spegni() {
document.getElementById('tunisie').src = "<?php echo JURI::root();?>modules/mod_prop_search_js/images/blu/tunisie-tunisie.png";
}
function getform1(controlDiv1,map1 )
{
var prova = document.createElement('DIV');
prova.setAttribute("id","prova");
prova.setAttribute("align","center");
var img = document.createElement('img');
img.setAttribute("id","tunisie");
img.setAttribute("border","1");
img.setAttribute("useMap","#Map");
img.setAttribute("src","<?php echo JURI::root();?>modules/mod_prop_search_js/images/blu/tunisie-tunisie.png");
prova.appendChild(img);
var mapz = document.createElement("Map");
mapz.setAttribute("name","Map");
prova.appendChild(mapz);
//img.appendChild(mapz);
var ariana = document.createElement('area');
mapz.appendChild(ariana);
ariana.setAttribute("class","hasTip");
ariana.setAttribute("id","ariana1");
ariana.setAttribute("title","Ariana");
ariana.setAttribute("onMouseOver","accendi('ariana');");
ariana.setAttribute("onFocus","accendi('ariana');");
ariana.setAttribute("onMouseOut","spegni();");
ariana.setAttribute("coords","39,206,37,212,33,218,33,222,31,224,35,221,39,222,50,222,49,218,43,210,44,204");
ariana.setAttribute("shape","poly");
//ariana.style.cursor = 'pointer';
google.maps.event.addDomListener(ariana, 'click', function()
{
var A = new google.maps.LatLng(36.8628324142237, 10.1955485343641);
map1.setCenter(A);
map1.setZoom(13);
document.getElementById('gouvernement').value=17;
changeStateListMap();
changeLocalityListMap();
searchGouvernement(17);
});
controlDiv1.appendChild(prova);
}
}
</script>
Bookmarks