Hi,
Saw this while looking for another solution so thought i would help!
In the js file replace:
Code:
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 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
displayballoontip(this, evtobj)
}
all_links[i].onmouseout=delayhidemenu
}
}
}
with...
Code:
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 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
function balloontipdoit(e){
var evtobj=window.event? window.event : e
displayballoontip(this, evtobj)
}
if (window.addEventListener)
all_links[i].addEventListener("mouseover", balloontipdoit, false)
else if (window.attachEvent)
all_links[i].attachEvent("onmouseover", balloontipdoit)
if (window.addEventListener)
all_links[i].addEventListener("mouseout", delayhidemenu, false)
else if (window.attachEvent)
all_links[i].attachEvent("onmouseout", delayhidemenu)
}
}
}
What this does is basically add an event listener for mouseovers and adds balloontips function to the mix (meaning both your swap image and balloontip run fine).
I am not a coder but this works fine for me in Firefox. I can't however get it to work in IE (but then I haven't tried very hard).
Have fun!
Bookmarks