replace function initalizetooltip with the variable and the modified function below
Code:
var delayhide=null;
function initalizetooltip(){
var all_links=document.getElementsByTagName("a")
if (enablearrowhead){
tiparrow=document.createElement("img")
tiparrow.setAttribute("src", arrowheadimg[0])
tiparrow.setAttribute("id", "arrowhead")
document.body.appendChild(tiparrow)
}
for (var tt,i=0; i<all_links.length; i++){
if (reltoelement(all_links[i])){ //if link has "rel" defined and it's the ID of an element on page
all_links[i].onmouseover=function(e){
var evtobj=window.event? window.event : e
clearTimeout(delayhide);
displayballoontip(this, evtobj)
}
all_links[i].onmouseout=delayhidemenu
tt=document.getElementById(all_links[i].getAttribute("rel"))
tt.onmouseover=function(){ clearTimeout(delayhide); }
tt.onmouseout=delayhidemenu
}
}
}
Bookmarks