2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
8 * jquery.qtip. The jQuery tooltip plugin
10 * Copyright (c) 2009 Craig Thompson
11 * http://craigsworks.com
14 * http://www.opensource.org/licenses/mit-license.php
16 * Launch : February 2009
18 * Released: Tuesday 12th May, 2009 - 00:00
19 * Debug: jquery.qtip.debug.js
23 jQuery
.fn
.qtip_activate = function() {
24 return this.each(function() {
25 var c
=jQuery(this).attr('class');
26 var ptarget
= 'rightTop';
27 var ptooltip
= 'leftTop';
28 var reg
=new RegExp('target_[^\\s]+',"");
30 if (f
) { ptarget
= f
[0].substr(7);}
31 reg
=new RegExp('tooltip_[^\\s]+',"");
33 if (f
) { ptooltip
= f
[0].substr(8);}
35 var content
= jQuery(this).siblings('.qTipContent');
46 name
: 'light' // Inherit from preset style
50 corner
: {target
: ptarget
, tooltip
: ptooltip
}
53 jQuery(this).addClass('qTipDone');
58 jQuery('.qTip').qtip_activate();
61 // ... et a chaque fois que le DOM change
62 onAjaxLoad(function() {
64 jQuery('.qTip',this).qtip_activate();