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 Lobato tomlob...@gmail.com wrote:
Hi,
in first, these days I started to play with jquery and I`m
Hey,
If you are referring to hovering your mouse over a div there is the
hover event:
$('#divid').hover(function(){
// Implement code while mouse is hovering div
},function(){
// Implement code while mouse leaves div
});
There are different mouse events too. Check them out at:
Hey,
Don't know if you mean when you hover over a div? Cause then you
should just use the hover event:
$('#divid').hover(function(){}
//Implement code while hovering
,function(){
// Implement code when you exit the div
});
Hope this helps.
Greetz,
Rick
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 Lobato tomlob...@gmail.com wrote:
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
5 matches
Mail list logo