extranet/www/js/annonces.js

23 lines
632 B
JavaScript
Raw Normal View History

$(document).ready(function(){
$('.tiptxt').each(function(){
//Si element existe alors on a le texte
var texte = $(this).find('span').html();
if (texte!=''){
$(this).qtip( {
content: { text: texte, },
solo: true,
2011-08-25 12:40:37 +00:00
style: { width: 400, name: 'cream' },
position: { corner: { target: 'bottomMiddle', tooltip: 'topMiddle' } }
});
} else {
$(this).qtip( {
content: { text: 'Chargement...', url: $(this).find('a').attr('href')+'&q=ajax', },
solo: true,
2011-08-25 12:40:37 +00:00
style: { width: 400, name: 'cream' },
position: { corner: { target: 'bottomMiddle', tooltip: 'topMiddle' } }
});
}
});
});