L’île de Madère
$(document).ready(function() { $('.map').maphilight(); })
var last_popup = null; var tab_X=new Array (605,680,601,524,398,416,369,298,187,200,190,245,254,149,173,88,104,375); var tab_Y=new Array (460,202,56,99,91,176,225,253,342,375,485,509,555,650,670,690,715,610);
function getAbsY(obj) { var absY = 0; var node = obj; while (node) { absY += node.offsetTop; node = node.offsetParent; } return absY ; }
function getAbsX(obj) { var absX = 0; var node = obj; while (node) { absX += node.offsetLeft; node = node.offsetParent; } return absX ; }
function mouseOut(obj) { obj.className="td_out"; }
function mouseOver(obj) {
if (last_popup) last_popup.style.left = "-10000px"; var index = obj.id.indexOf("_"); var numero=document.getElementById.value=(obj.id.substr(index+1,2)); var num=parseInt(numero); var elt = document.getElementById("popup"+obj.id.substr(index,3)); // coordonnées de la fenêtre popup; // Code pour positionnner le popup à droite de l'objet obj; // elt.style.left = (getAbsX(obj)+obj.offsetWidth+10)+"px"; // elt.style.left = (getAbsX(obj) +"px"; var haut=tab_Y[num-1]+150; var chaine =haut + "px"; elt.style.top = chaine; gauche=tab_X[num-1]+50; chaine=gauche + "px"; elt.style.left= chaine; last_popup = elt; }
(cliquer sur le nom du site pour ouvrir sa page)