Results 1 to 4 of 4

Thread: Cool DHTML Tooltip & DHTML Window Widget

  1. #1
    Join Date
    Feb 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Cool DHTML Tooltip & DHTML Window Widget

    1) Script Title:
    Cool DHTML Tooltip
    DHTML Window Widget

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tmltooltip.htm
    http://www.dynamicdrive.com/dynamici...ndow/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.

  2. #2
    Join Date
    Feb 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Still looking for assistance with this one - anyone?

  3. #3
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i have the exact same problem...

    anyone find a solution for this ???

  4. #4
    Join Date
    May 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Found a fix

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •