PDA

View Full Version : jQuery bug on mouseout



pskl
27 Oct 2010, 01:51 PM
Hi !

I'm currently working on my personal website.
I use some jQuery here and there, but a strange bug appears on the thumbnails of my gallery. Let's explain !

On my site (http://psaikali.com), in the 'galeria' part, each thumbnail has a title that appears when we 'mouseover' the thumbnail. The title's div is going down on 'mouseou't, and then disappears.
It works perfectly well when the 'mouseout' is done by the top, right or left side. When the mouse leaves the thumbnail through the lower side, the title's div does disappear, but then appears and disappears another time.

Here is the jQuery code to show you how it works ...


jQuery('#galeria .galeria-artwork').mouseover(function() {
jQuery(".galeria-artwork-titulo", this).animate({ top:"-50px"}, 150 );
});

I hope my explanation is quite clear ! Thanks for those who read me.

Pierre