PDA

View Full Version : Resolved Lightbox not starting?



traq
03-22-2009, 07:33 PM
Script title/url: Lightbox image viewer 2.03 (http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm)

Maybe I'm just too close to the problem. I've used this same setup on several other pages/sites and it works great. I've been looking for a few days now and I can't find any conflicts, missing or broken paths, etc. Can anyone see why lightbox is not working on this page (http://www.crocilgator.net/noah/school/award/)?

jscheuer1
03-22-2009, 08:40 PM
I'm not sure yet, but your:

http://www.crocilgator.net/library/js/site.js

is a 404 not found, though I'm not seeing any javascript errors as a result. Also, although in your PHP Photo Album script you have:


var tempcontainer='<a href="'+imagecompletepath+'" target="'+href_target+'" rel="lightbox[trip]" onClick="return popuplinkfunc(this)">'


which would potentially setup each of these links for initialization via lightbox, if the 'album page' is changed, it will not work. Lightbox 2.04 has a better chance of working with this sort of setup.

If the above hasn't switched on the 'light' for you and you haven't yet figured out the issue(s), perhaps if you were to post a link to another of these installations where it is working, the problem would be more obvious to me.

traq
03-23-2009, 03:20 PM
jscheuer, thanks a lot. I know about "site.js" -it's where I'm sticking all the javascript that will be needed on every page site-wide (menus, etc.). It has nothing to do with lightbox.

I have the php photo album + lightbox set up and working on several pages here (http://seascouts.arrowheadsps.org/albums/). Thanks for your time.

jscheuer1
03-23-2009, 04:24 PM
I don't know why I missed this before. You've neglected to upload effects.js to this location:

http://www.crocilgator.net/library/js/effects.js

If you don't have a copy lying around, you can use this one from your other site:

http://seascouts.arrowheadsps.org/library/effects.js

traq
03-23-2009, 09:01 PM
geez... don't know why I missed that, either. thanks a million!