View Full Version : Buttons not working in Lightbox Slideshow

10-09-2009, 03:30 PM
1) Script Title: Lightbox image viewer 2.03a

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

3) Describe problem: I have created a lightbox slideshow and everything appears to be working fine, except the "next" "back" "close" and "loading" all the pictures are saved in my images file, and I can't seem to find anything wrong with my script. Please Help!!!



10-09-2009, 04:13 PM
I only tracked this down for the closelabel.gif image, but I imagine the same is likely true for all of the resource images involved here.

Upper and lower case matter on the web. Your script is looking here for the image:


It is not there, it is here:


Now I believe the location of some of these images are set in the script file, near the beginning, others are set in the css file. So the changes must be made both places, in the lightbox.js script file:

. . .
- initLightbox()

Function Calls
- addLoadEvent(initLightbox)

// -----------------------------------------------------------------------------------

// Configuration
var fileLoadingImage = "Images/loading.gif";
var fileBottomNavCloseImage = "Images/closelabel.gif";

var animate = true; // toggles resizing animations
var resizeSpeed = 7; // controls the speed of the image resizing animations (1=slowest and 10=fastest)

var borderSize = 10; //if you adjust the padding in the CSS, you will need to update this variable

// -----------------------------------------------------------------------------------

// Global Variables
var imageArray = new A . . .

And in the lightbox.css style file:

. . . vLink, #nextLink{
width: 49%;
height: 100%;
background: transparent url(../Images/blank.gif) no-repeat; /* Trick IE into showing hover */
display: block;
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(../Images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(../Images/nextlabel.gif) right 15% no-repeat; }

font: 10px Verd . . .