Home › Forums › JavaScript › Tooltip hover issue › Re: Tooltip hover issue
September 6, 2011 at 3:56 pm
#86532
Participant
oh crap, i totally forgot, the site has a maintenence page up until complete. You have to have a login/password to view it.
I’ll copy/paste the relevant code.
$("img").bind("mouseover", function() {
var pimg = $(this);
var position = pimg.position();
var top = position.top;
var left = position.left;
var title = $(this).attr('title');
var alt = $(this).attr('alt');
$(this).parent().append('' + title + '
' + alt + '
');
});
$("img").bind("mouseout", function() {
$('.toolTip').remove();
});