PDA

View Full Version : Problem with Lightbox image viewer



nexxosmedia
02-02-2008, 06:53 AM
1) Script Title:
Lightbox image viewer
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox2/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!

jscheuer1
02-02-2008, 04:02 PM
There appear to be two problems.


The paths to the next/previous images are wrong.

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:


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


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