PDA

View Full Version : Combined scripts not working



Jamcan
07-19-2013, 09:05 PM
1) Script Title:
Lightbox - an image viewer
Background Image Carousel a slider
Ddmegamenu/ddaccordion a dropdown memu

2) Script URL (on DD):
Lightbox = http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm
Image Carousel = http://www.dynamicdrive.com/dynamicindex14/bgcarousel.htm
Accordian menu = http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm

3) Describe problem:

I have these 3 script above, but only the first one works on the page, and the rest only work once lightbox is removed.

Any suggestions please?
Page = http://bcfchurch.net/gallery.html

jscheuer1
07-20-2013, 01:29 AM
It can be difficult getting Prototype and jQuery working together. So I would ordinarily recommend using a jQuery based Lightbox type script here. However, proper organization of elements in the head is important too. What I've done here is organize things as they should be (meta Content-Type tag as the first meta tag, all styles before scripts, only one version of jQuery, scripts using jQuery before Prototype with at least one of the jQuery scripts setting noConflict mode, and updating to the most recent versions of Prototype and Scriptaculous). Since that takes care of things, I won't bother you with converting to a jQuery based Lightbox type script. Even if you decide to convert, proper organization is still important.

Anyways, here's a working example of the page you linked to (right click and 'Save As'):

5148

Just in case, back up what you have first, then replace it with the file from the attached archive.

The browser cache may need to be cleared and/or the page refreshed to see changes.

Any questions, feel free to ask.

Jamcan
07-20-2013, 12:28 PM
Thank you very much...IT WORKED!!!!!!!!!!!

Awesome, thanks.

Be blessed ALWAYS.
Rohan