Results 1 to 4 of 4

Thread: Image Thumbnail Viewer II Problem

  1. #1
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II Problem

    1) Script Title:
    Image Thumbnail Viewer II

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

    3) Describe problem:
    When a mouse is over a picture and another picture comes up, the page moves.
    You'll see what I mean once you try it out:
    http://www.womeninboxes.com/cast.htm
    Any logical reason why it doesn't stay still?

    Thanks a million!

    robinwjr@gmail.com

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Make sure the container DIV that you're using to house the shown image contains a height attribute set to accomodate the largest image (height wise). For example:

    Code:
    <div id="loadarea" style="width: 600px; height: 500px"></div>

  3. #3
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply!

    Unfortunately, it still acts up. I set the DIV to the exact dimensions (each pic has the same dimensions) yet it still jerks the page. Thanks anyway, though.

    robinwjr@gmail.com

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ah ok finally figured out this little bit of mystery. The problem is due to the line:

    Code:
    this.focus()
    inside the .js file. Apparently setting focus to the images in this case is causing the jumping action. Comment it out:

    Code:
    //this.focus()
    That should do it.

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
  •