2 lines
453 B
JavaScript
2 lines
453 B
JavaScript
|
|
$(document).ready(function(){$('.tiptxt').each(function(){var texte=$(this).parent().find('span').html();if(texte!=''){$(this).qtip({content:{text:texte},solo:true,style:{width:400,classes:"ui-tooltip-cream"},position:{at:"bottom left",my:"top left"}});}else{$(this).qtip({content:{text:"Chargement...",ajax:{url:$(this).attr('href')+'&q=ajax'}},solo:true,style:{width:400,classes:"ui-tooltip-cream"},position:{at:"bottom left",my:"top left"}});}});}); |