PDA

View Full Version : Lightbox v2.03 not working properlly



eggtrade
08-18-2007, 03:02 PM
1) Script Title: lightbox v2.03

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

3) Describe problem: I've got lightbox half working however theres something up with it and i'm completely stuck as to what it is. Any help would be greatly appreciated.

Here's My website where I've been having problems:

http://eggtrade.theeggbasket.com/my%20portfolio/my-portfolio.html

Thanks again

jscheuer1
08-18-2007, 04:47 PM
Two things I notice:

1 ) In FF, it looks all messed up when the box displays.
2 ) In several browsers, I don't see the next and previous images.

For number 1, get rid of this (red) from your body tag:


<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
onLoad="preloadImages();initLightbox();">

The script itself is already initing and doing so without conflicting with with your image preload script. To place it here can cause it to init twice, making all of its created elements with id's invalid for scripting purposes.

For number 2, the paths to these images is incorrect in the stylesheet (lightbox.css) they should be (red, for your current setup):


#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; }

There could also be other problems.

eggtrade
08-18-2007, 07:07 PM
Hi- the first suggestion you made sorted it straight out!

Thanks a lot for your help! :)

eggtrade