Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Tooltip hover issue Re: Tooltip hover issue

#86532
noahgelman
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();
});