PDA

View Full Version : Cool DHTML Tooltip & DHTML Window Widget



dhepburn
02-12-2008, 01:15 PM
1) Script Title:
Cool DHTML Tooltip
DHTML Window Widget

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem:
I have a window which uses both of these script. When I put a tooltip on a <a> hyperlink onmouseover, the tooltip works fine (as expected). If the HREF of that hyperlink opens a Window Widget (Iframe) and I continue to run the mouse over those same hyperlinks in the window now sitting in the background, the tooltips continue to work as expected.
However, if I click the "X" to close the widget window, the tooltips fail to work anymore.
After experimenting, I put my own CLOSE button on the window (within the page content) which closes the window by referring to the window's parent (the calling window) as such:
var ifr = parent.document.getElementById('ajaxpopup');ifr.close()
When the widget window is closed using this process, the tooltips work fine afterwards.
Further expermineting, I found that even if you just click the title bar of the widget window, then try the tooltips again, they don't work.
It would appear that problem exists where if you click anywhere in the widget titlebar, including the Close & Minimize icons, seems to stop the tooltip scripts from working.
Does anyone know a workaround?
PS. I don't want to use my own closing technique as described above. I want to use the "X".

TIA.

dhepburn
02-17-2008, 08:34 AM
Still looking for assistance with this one - anyone? :(

wpervaiz
12-06-2008, 04:24 AM
i have the exact same problem...

anyone find a solution for this ??? :confused:

dmt01
05-31-2009, 09:46 PM
I had the same problem. These scripts both set document.onmousemove. DHTML Window Widget sets it to null in the stop function.

I added the line:
document.onmousemove=positiontip;
to funntion ddrivetip.
----------------------


function ddrivetip(thetext, 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
}
}