Results 1 to 7 of 7

Thread: Image Thumbnail Viewer not "dragging"

  1. #1
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer not "dragging"

    What have I done wrong... It drags properly one one of my pages, but is unmoving on another.

    The page it works fine on is http://www.familymemoriesandmore.com/magazinecovers.htm.

    The page it won't allow me to drag the image is http://www.familymemoriesandmore.com/announcements.htm.

    I don't know if you need me to post the code here, if that makes it easier, but you can see it in my "source".

    Thanks in advance for your help to what is probably a really easy issue!

  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

    Probably a conflict with one of the other ten scripts on the page or a problem due to the call to MM_preload that isn't.
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay...

    What can I do to fix this?

  4. #4
    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

    Get rid of the call to the non-existent code. If that doesn't take care of it, start taking the other scripts off of the page one at a time until you find the one(s) causing the conflict.
    - John
    ________________________

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

  5. #5
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you.

    I've deleted all scripts except for my navigation menu. Apparently that may be the culprit? Certainly it's possible to run both scripts on the same page... isn't it?

  6. #6
    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 in the use of the onmousedown event handler. And you still haven't removed the MM_preload thing. Get rid of it here:

    Code:
    <body background="images/newbackground.jpg" onLoad="MM_preloadImages('addresslabels.htm','images/CANWRAP2.jpg')">
    Change this in the Image Thumbnail viewer:

    Code:
    document.onmousedown=initializedrag
    to:

    Code:
    if ( typeof window.addEventListener != "undefined" )
        document.addEventListener( "mousedown", initializedrag, false );
    else if ( typeof window.attachEvent != "undefined" )
        document.attachEvent( "onmousedown", initializedrag );
    else {
        if ( document.onmousedown != null ) {
            var oldOnmousedown = document.onmousedown;
            document.onmousedown = function ( e ) {
                oldOnmousedown( e );
                initializedrag();
            };
        }
        else
            document.onmousedown = initializedrag;
    }

    There could be other problems (in fact there are other errors reported) but, that made a local copy of the page work with the menu script.
    - John
    ________________________

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

  7. #7
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am going to dance at your wedding.

    THANK YOU!

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
  •