PDA

View Full Version : Help with Lightbox image viewer script



brendanpbd
01-04-2007, 02:27 AM
1) Script Title: Lightbox image viewer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox/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!

thetestingsite
01-04-2007, 02:33 AM
In the source code, you are ponting to lightbox.css wrong.

Instead of like the following:



<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />


It should be like this:



<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.

brendanpbd
01-04-2007, 02:47 AM
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

brendanpbd
01-04-2007, 03:18 AM
Hi, I tried it with the full url linking to the lightbox.css file and now it works! Thank you for your help!

thetestingsite
01-04-2007, 05:10 AM
You are very welcome, let me know if you need any more help.