I use this tooltip script that showen here: http://www.htmldrive.net/items/show/681/jQuery-and-CSS3-Simple-Tooltip.html
this is what I use, same with few changes:
$(document).ready(function() {
$("body").on("mouseover", ".tip_trigger", function(){
tip = $(this).find('.tip');
$(".tip").html('Loding...');
tip.show(); //Show tooltip
}, function() {
tip.hide(); //Hide tooltip
}).mousemove(function(e) {
var mousex = e.pageX; //Get X coodrinates
var mousey = e.pageY; //Get Y coordinates
var tipWidth = tip.width(); //Find width of tooltip
var tipHeight = tip.height(); //Find height of tooltip
var X = $('.tip_trigger').offset().left;
var Y = $('.tip_trigger').offset().top;
mousex = e.pageX - X+180;
mousey = e.pageY - Y+105;
tip.css({ top: mousey, left: mousex });
$(".tip").html('Loding...');
var idp= this.title;
$('.tip').load("/infopage.php", { id: idp});
});
});
the html with the tip is somthing like this:
<td style="padding-left:4px;"><a href="#" class="tip_trigger" title="40420549">text<span class="tip"></span></a> txtxtxtxt</td>
It's work great, But the problem is that after I load some php content with ajax the script don't work on the content that came from there.
why that happen? If there is anther way to load php content to tooltip It will be good too :)