Results 1 to 3 of 3

Thread: Image Thumbnail Viewer

  1. #1
    Join Date
    Apr 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer

    first off great script

    ok question now

    Is there anyway I can set or control where the image opens up, I have pages with loads of images and some fall off the page when they are opened

    for an emaple see

    http://www.blackburnhawks.com/photos...406/index.html

    thanks Zeb

  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

    OK, move:

    HTML Code:
    <div id="showimage"></div>
    to just below your body tag. Edit it to look like this:

    HTML Code:
    <div id="showimage" style="z-index:100;"></div>
    Next, take all of your:

    HTML Code:
    <a href="1.jpg" onClick="return enlarge('1.jpg',event)"><img src="th1.JPG" border="0"></a>
    lines like that and make them like so:

    HTML Code:
    <a href="1.jpg" onClick="return enlarge('1.jpg',event,'center',550,570)"><img src="th1.JPG" border="0"></a>
    You can do a global search and replace, just be careful you only hit these specific lines. To do it 'right', 550 and 570 should be replaced with the actual width and height, respectively of the larger image for each thumbnail, respectively. Looking at your images though, these values are close enough.
    - John
    ________________________

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

  3. #3
    Join Date
    Apr 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks is works will update my site later

    prompt reply and solution.

    Zeb

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
  •