Results 1 to 4 of 4

Thread: Thumbnail Viewer

  1. #1
    Join Date
    Aug 2006
    Location
    Chicago
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thumbnail Viewer

    1) Script Title: image thumbnail viewer

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

    3) Describe problem: Need Help. How do I edit where the pop-up is placed?

    I am having trouble with the way the thumbnail enlarges. when the enlarged image pops up (and the image is fairly large (the image is 600 x 402) a good deal of the image is off the right margin of the page. Smaller pop up images are OK.

    Any help would be appreciated. I know the image can be dragged to the middle of the page but it would look much better if the image was all viewable off the bat.

    Thanks Much!!
    KC

  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

    Reread all of step3 on the demo page, it explains how, by passing the dimensions of the larger image to the enlarge() function and using the 'center' parameter, you can have the larger image appear centered on the page rather than originate at the mouse pointer.

    In other words, use this method:

    Code:
    onClick="return enlarge('lemoncake.jpg',event,'center',300,375)"
    where 300 is the width and 375 the height of the larger image, instead of this method where no information of that sort is used:

    Code:
    onClick="return enlarge('photo1.jpg',event)"
    - John
    ________________________

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

  3. #3
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer Width/Height doesn't work

    Hi
    Love this script but I can not get the enlarged picture size to adjust. The directions seem straightforward, so maybe there is somewhere else I should be adjusting?

    thanks!!!!!
    Elaine

  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

    I would need a link to your problem page.
    - John
    ________________________

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

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
  •