Results 1 to 4 of 4

Thread: DHTML tooltip script II Help

  1. #1
    Join Date
    Nov 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation DHTML tooltip script II Help

    1) Script Title: DHTML tooltip script II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...mltooltip2.htm

    3) Describe problem:

    The script works fine, however it is interferring with another script I use for the menu. The menu works fine on all other pages except where I have the tool tip script.

    The site can be seen on the development server here:

    http://www.mortondev.com/ncb/quote.php

    The menu is QuickMenu Pro.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There is a conflict with the document.onmousemove handler. Try replacing this in the tooltips.js script (at the end of it):

    Code:
    document.onmousemove=positiontip
    with:

    Code:
    if ( typeof window.addEventListener != "undefined" )
        document.addEventListener( "mousemove", positiontip, false );
    else if ( typeof window.attachEvent != "undefined" )
        document.attachEvent( "onmousemove", positiontip );
    else {
        if ( document.onmousemove != null ) {
            var oldOnmousemove = document.onmousemove;
            document.onmousemove = function ( e ) {
                oldOnmousemove( e );
                positiontip(e);
            };
        }
        else
            document.onmousemove = positiontip;
    }
    There could be other problems.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Thanks

    It fixed it, thank you very much.

  4. #4
    Join Date
    Mar 2007
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Saved!

    Fixed my problem as well.

    Keywords: Milonic Menu ToolTip Dynamic Drive Conflict OnMouseMove

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
  •