Results 1 to 5 of 5

Thread: Help with Lightbox image viewer script

  1. #1
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with Lightbox image viewer script

    1) Script Title: Lightbox image viewer

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

    3) Describe problem: Hello, any help would be greatly appreciated.
    I am working on adding the lightbox script to an image gallery. Everything is working, except for the effect in which the page behind the image is darkened. When you click the thumbnail image, the image pops up centered with the "x" to close the image and the loader image works too, but the page does not become dark when viewing the image. I have all the lightbox files in a folder called "lightbox". The url where you can see my effort so far is: http://home.comcast.net/~brendanpbd/pages/art.html (there is 1 hyperlinked thumbnail). Does anyone have any idea why this is not working? I have tried it in FF1 and IE6. Many thanks!

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    In the source code, you are ponting to lightbox.css wrong.

    Instead of like the following:

    Code:
    <link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />
    It should be like this:

    Code:
    <link rel="stylesheet" href="lightbox/lightbox.css" type="text/css" media="screen" />
    Reason is that your css file is in your lightbox directory. That should fix the problem with that.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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

    Default

    Thanks for the quick response. I updated this code and it doesn't seem to have fixed it. Do you have any other suggestions? Thank you

  4. #4
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi, I tried it with the full url linking to the lightbox.css file and now it works! Thank you for your help!

  5. #5
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    You are very welcome, let me know if you need any more help.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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
  •