Re: [jQuery] Re: Is mouse inside a div?

2009-11-16 Thread Tom Lobato
Hi Rick! yes, over a div. But I need to know if the mouse is or not over it. I made it setting a flag in the callbacks of the hover event: // show/hide gallery var is_over = false; $("#ftdest_forum").hover(function(){ is_over = true chvis(1.0) }, function(){ is_over = false chvis(

Re: [jQuery] Re: Is mouse inside a div?

2009-11-16 Thread Tom Lobato
Hi Shane, great, it works! thank you :) Shane Riley escreveu: > You can attach the mouseenter event to the div like this: > $('div').mouseenter(function() { // Do stuff }); > > Documentation is at http://docs.jquery.com/Events/mouseenter > > On Nov 15, 3:30 pm, Tom

[jQuery] Is mouse inside a div?

2009-11-15 Thread Tom Lobato
Hi, in first, these days I started to play with jquery and I`m impressed, excellent library! Well, I already done some cool things, but I can`t find how to check wheter the mouse pointer is inside a div. Any hints? Thank you!