PDA

View Full Version : balloontooltip stay on position on hover



davelf
12-06-2011, 10:53 AM
1) Script Title: Rich HTML Balloon Tooltip

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex5/balloontooltip.htm
3) Describe problem:
Hi, i try to use this tooltip in my website:
http://imaxxo.net/advanced/store.html

i try to put a link to the tooltip. But everytime i hover to the tooltip it disappear how to fix this, thanks.

vwphillips
12-06-2011, 11:59 AM
replace function initalizetooltip with the variable and the modified function below


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
}
}
}

davelf
12-07-2011, 07:48 AM
Thanks Vic