//************************************************************************************ // Fonctions pour la génération des aides d'infobulle var ns4 = (document.layers)? true:false; var ie4 = (document.all)? true:false; var DetailFormationVisible = false; function CreerDetailFormation() { document.write(''); } function BougerDetailFormation(e) { var posX = 0, posY = 0; if(DetailFormationVisible == true) { if( !e ) e = window.event; if( typeof(e.pageX) != 'undefined' ) { posX = e.pageX; posY = e.pageY; } else { if( typeof(document.documentElement) != 'undefined' ) { posX = (e.clientX + document.documentElement.scrollLeft); posY = (e.clientY + document.documentElement.scrollTop); } else { posX = (e.clientX + document.body.scrollLeft); posY = (e.clientY + document.body.scrollTop); } } // document.getElementById("DetailFormation").style.left = (posX + 20) + 'px'; document.getElementById("DetailFormation").style.left = (posX - 225) + 'px'; document.getElementById("DetailFormation").style.top = (posY + 20) + 'px'; } } function MontrerDetailFormation(code) { if(DetailFormationVisible == false) { /* document.getElementById("DetailFormation").innerHTML = "";*/ document.getElementById("DetailFormation").innerHTML = Description['code']; document.getElementById("DetailFormation").style.visibility = 'visible'; document.getElementById("DetailContenu").style.width = '450px'; document.getElementById("DetailContenu").style.height = '200px'; DetailFormationVisible = true; document.onmousemove = BougerDetailFormation; } } function CacherDetailFormation() { if(DetailFormationVisible == true) { document.getElementById("DetailFormation").style.visibility = 'hidden'; DetailFormationVisible = false; } } document.onmousemove = BougerDetailFormation; // des que la souris bouge, on appelle la fonction BougerInfoBulle pour mettre a jour la position de la bulle.