$(document).ready(function(){ //Tooltip date de maj if ($('a.datemaj').length){ $('a.datemaj').qtip({ content: $('a.datemaj > span').html(), style: { width: 170, classes: "ui-tooltip-cream" }, position: { at: "bottom center", my: "top center" } }); } //Tooltip de domiciliation if ($('div.domiciliation').length){ $('div.domiciliation').qtip({ show: { event: "click" }, hide: { event: "unfocus" }, content: $('div.domiciliation span').html(), style: { width: 200, classes: "ui-tooltip-cream" }, position: { at: "bottom center", my: "top center" } }); } //Tooltip AncienSiege if ($('a.AncienSiege').length){ $('a.AncienSiege').qtip({ show: { event: "click" }, hide: { event: "unfocus" }, content: $('a.AncienSiege').attr('title'), style: { width: 350, classes: "ui-tooltip-cream" }, position: { at: "bottom center", my: "top center" } }); $('a.AncienSiege').attr('title', "Cliquez pour consulter les informations d'activité."); } });