Results 1 to 2 of 2

Thread: Problem with Lightbox image viewer

  1. #1
    Join Date
    Feb 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with Lightbox image viewer

    1) Script Title:
    Lightbox image viewer
    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...box2/index.htm

    3) Describe problem: The close, next, back and loading images do not show up at all. The same problem has occurred in every page I have used it:
    http://www.prssa.we.bs/elections.html
    http://www.nexxosmedia.we.bs

    What did I do wrong? Any help is greatly appreciated!

  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

    There appear to be two problems.

    1. The paths to the next/previous images are wrong.
    2. Even with the correct path, your server seems reluctant to show the closelabel.gif image. This may have to do with the server settings or it could be something else. However, once this image is cached by the browser, it seems OK.


    To solve the first problem, use the correct path to those images in your stylesheet. To fix the second, you could find out why this is happening and correct that, but I think that if you were simply to put this in the body of the page, just before the closing </body> tag:

    HTML Code:
    <img style="position:absolute;visibility:hidden;top:-100px;left:-200px;" 
    src="http://nexxosmedia.itrello.com/PRSSA/Lightbox/closelabel.gif" alt="original image" title="">
    for the one site and:

    HTML Code:
    <img style="position:absolute;visibility:hidden;top:-100px;left:-200px;" 
    src="http://nexxosmedia.we.bs/closelabel.gif" alt="original image" title="">
    for the other. This should cache those images for the user. Once you fix the paths to the next/previous images, you may have to add them to the end of the body in a similar fashion as well if the server doesn't use them.

    Also, it wouldn't hurt to remove the extraneous script and style calls from your source code.
    - 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
  •