1) Script Title: Cool DHTML Tooltip
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tmltooltip.htm
3) Describe problem: When a link is pressed that links to the page with a blank anchor, the tooltip stops popping up. For example, on the page I am working with, if I click on some links with href set to "#" that launch a dhtml pop window (found here actually: http://www.dynamicdrive.com/dynamici...ndow/index.htm) the tooltip stops working on the page.
I am not a javascript expert by any means, but I found that the issue is resolved if you copy the linedocument.onmousemove=positiontip;into theddrivetipfunction. So ddrivetip should look like
I just wanted to post this fix here to help anyone else who might have a similar issue. (Karma points lol)Code:function ddrivetip(thetext, thecolor, thewidth){ document.onmousemove=positiontip if (ns6||ie){ if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px" if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor tipobj.innerHTML=thetext enabletip=true return false } }
Thanks Dynamic Drive!



Reply With Quote
Bookmarks