Forums
This topic is locked
tooltips
Posted 14 Sep 2005 09:29:22
1
has voted
14 Sep 2005 09:29:22 Chris Trace posted:
hey all,this might be a no brainer but how do you add a tooltip mouse pop up text box to a hyperlink as a brief description of what the hyperlink is?
Thanks
Chris
Replies
Replied 14 Sep 2005 11:10:27
14 Sep 2005 11:10:27 Chris Trace replied:
actually a bit more difficult BUT
host-biz.com/tooltips.html
is excellent and would recommend this to anyone who wants to make their hyperlinks with tooltip popups
simple to use and very effective - very stylish too
thanks
Chris
host-biz.com/tooltips.html
is excellent and would recommend this to anyone who wants to make their hyperlinks with tooltip popups
simple to use and very effective - very stylish too
thanks
Chris
Replied 14 Sep 2005 12:02:50
14 Sep 2005 12:02:50 Chris Trace replied:
acutally there is one issue
when you scroll down the page the tooltip appears relative to the top of the page and not the hyperlink positioning
if a clever sod can tell me how to fix this - undoubtably with a major code rewrite as the hyperlink postition is not a constant positioning within the browser window - workaround is to only use it where the browser isnt scrolled down i guess
when you scroll down the page the tooltip appears relative to the top of the page and not the hyperlink positioning
if a clever sod can tell me how to fix this - undoubtably with a major code rewrite as the hyperlink postition is not a constant positioning within the browser window - workaround is to only use it where the browser isnt scrolled down i guess
Replied 14 Sep 2005 22:20:14
14 Sep 2005 22:20:14 Chris Trace replied:
is this correct to position the popup near the moused over link or is there something that is creating the above error
}
function MoveToolTip(layerName, FromTop, FromLeft, e){
if(ie){eval(doc + layerName + sty + ".top = " + (eval(FromTop) + document.body.scrollTop))}
if(ns){eval(doc + layerName + sty + ".top = " + eval(FromTop))}
eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15))
}
}
function MoveToolTip(layerName, FromTop, FromLeft, e){
if(ie){eval(doc + layerName + sty + ".top = " + (eval(FromTop) + document.body.scrollTop))}
if(ns){eval(doc + layerName + sty + ".top = " + eval(FromTop))}
eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15))
}