PDA

View Full Version : Lightbox image viewer 2.03 close/loading.gif problem.



Jarik
10-12-2007, 06:52 PM
1) Script Title: Lightbox image viewer 2.03

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

3) Describe problem: Everything works correctly for the exception of the loading.gif and close.gif images files. They just do not load onto the lightbox image viewer when activated. All I see are red X's (PREV and NEXT gifs load fine).

I believe I have done everything correctly from using the zipped gif files to properly defining the images' path in the lightbox.js file. Nothing seems to work. I even tried placing the gif files into the same folder as the lightbox.js file but removed the "../" from the path.

Here is the code from the lightbox.js file. Please help. Thank you.


// Configuration
//
var fileLoadingImage = "../images/loading.gif";
var fileBottomNavCloseImage = "../images/close.gif";

jscheuer1
10-12-2007, 07:13 PM
The paths used here:



// Configuration
//
var fileLoadingImage = "../images/loading.gif";
var fileBottomNavCloseImage = "../images/close.gif";

must be accurate relative to the page that is using the script, not to the script. Alternatively, the absolute path to the images may be used. If you need more help:

Please post a link to the page on your site that contains the problematic script so we can check it out.