$('div').mouseover(function(e){
var tooltip='<div id="tooltip" style="background:red;width:100px;position:absolute;z-index:10;" >哈哈</div>'
$('div').append(tooltip);
$('#tooltip').css({
top:(e.pageY+y)+'px',
left:(e.pageX+x)+'px'
}).show('fast')
})
$('div').mouseout(function(){
$('#tooltip').remove();
})