i have a little problem with the hover function with mousemove.
But what is wrong?
working example -> http://www.jsfiddle.net/V9Euk/306/
$('.tip').live('hover', function(e)
{
if (e.type == 'mouseover')
{
$('#'+this.id+' .tooltip').show();
}
if (e.type == 'mousemove')
{
alert('move');
$('#'+this.id+' .tooltip').css({ left: e.pageX + 20, top: e.pageY + 20});
}
if (e.type == 'mouseout')
{
$('.tooltip').hide();
}
});
There is no
hoverevent – you need to instead include all three events which you used, like this:See the jQuery documentations example on multiple events in
live():