tags:

views:

30

answers:

1

Hi,

I am working to modify a script,

Here is original lines;

function JT_init(){
       $("a.jTip")
       .hover(function(){JT_show(this.href,this.id,this.name)},function(){$('#JT').remove()})
           .click(function(){return false});       
}

I am trying to do;

function JT_init(){
       $("a.jTip")
       .hover(function(){JT_show(this.href,this.id,this.name)},function(){checkifhover()})
           .click(function(){return false});       
}


function checkifhover() {
//if there was a func like ismouseover i would do this...

if ismouseover(JT) {
return false;
} else {
$('#JT').remove();
}
}

how can i check if mouse is over ?

thanks

A: 

Just make sure that the element that you show at mouseover is a child of the element that you hook up the event to. That way you are still hovering the parent as long as you are hovering the child.

Guffa
no it s not i am sure, JT div element is appended to body
Ahmet vardar