Results 1 to 6 of 6

Thread: Thumbnail Viewer Drag and Drop Problem

  1. #1
    Join Date
    Jun 2005
    Location
    San Jose, CA (home); Rochester, NY (school)
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thumbnail Viewer Drag and Drop Problem

    Image Thumbnail Viewer
    http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

    Hello, I'm trying to implement the above script in my website, but am having an issue with the drag and drop code. If you click anywhere in the top bar of the popup window (as you would to drag it) the cursor becomes stuck in the center of the window and won't release it. The result is the window following your cursor everywhere around the screen, with you unable to move your cursor to the "close" button. The problem can't be resolved without refreshing the page.

    If someone could offer some tips on how to either resolve the problem or extend the close button area to the entire top area, that would be great.

    Thanks a bunch,
    Stephanie

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Make sure you've got the "onmouseup" code all in there OK.
    Preferably, provide a link to the page in question.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jun 2005
    Location
    San Jose, CA (home); Rochester, NY (school)
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I just copy pasted everything so there shouldn't be any difference in the code...

    I can't provide a link because the page has tons of graphics and I don't have the server space for it. sorry. (It's for someone else and they haven't given me access to their server yet.)

    This is the only part of the code that addresses "onmouseup":

    document.onmousedown=initializedrag
    document.onmouseup=new Function("dragapproved=false")

    It occurs at the very end of the script.

  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

    Check back over the instructions very carefully, unless you have this same problem on the demo page, it is either something you did wrong or a conflict. Do you have any other scripts on the page?
    - John
    ________________________

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

  5. #5
    Join Date
    Jun 2005
    Location
    San Jose, CA (home); Rochester, NY (school)
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, no I'm not having it on the demo page. There are a few other scripts on the page. I can't find any conflict with the shorter ones I've done, but there's an absolutely enormous one from fireworks that's for my navigation bar. I'll look over it but if I don't find anything I'll try to make room on my server to upload.

  6. #6
    Join Date
    Jun 2005
    Location
    San Jose, CA (home); Rochester, NY (school)
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, here's the page with the problem. A lot of the graphics it's using are old and don't adhere to the new dimensions, so ignore the look...

    http://www.nightwings.net/work/actua...dmoulding.html

    The only one that currently has the code for the popup is the last thumbnail (bottom right)
    Last edited by starlameris; 07-15-2005 at 06:03 PM.

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
  •