[jQuery] Link with hover and a div

[jQuery] Link with hover and a div


Hi,
I wan't to show a div on an mouseover at a link, like a tooltip.
Parts of my Code:
function jpmTip_init() {
$("a").hover(
function(event) {
$('div.jpmTipDIV').remove();
jpmTip_show(this, event.pageX, event.pageY);
},
function() {
window.setTimeout("$('div#jpmTipDIV').remove()", 200);
}
);
}
function jpmTip_show(obj, mouseX, mouseY) {
$("body").append("<div id='jpmTipDIV'> ... </div>");
$("div#jpmTipDIV").show();
return false;
}
This works fine. But I wan't the div not to be removed, when the user
set's the mouse
on the div. I think, I should use other methods than hover. But I have
no Idea.
Cann anyone help please? And sorry for my bad english.
kind regards
JPM