PDA

View Full Version : Conflict between Lightbox 2.0 and Conveyor Belt Slideshow



facilidis
03-23-2007, 02:03 PM
1) Lightbox 2.0 and Conveyor Belt Slideshow

2) http://dynamicdrive.com/dynamicindex4/lightbox2/index.htm and http://dynamicdrive.com/dynamicindex14/leftrightslide.htm

3) Hi, just a short question.
Even though conflicts between two scripts are not supported here maybe someone could help me with my problem. Can someone tell me what can be used to replace "window.onload = fillup;" (which I figured out is the part that doesn't work with Lightbox 2.0). If I just delete it and put "fillup();" at the end of the script the Lightbox 2.0 works fine in FF but the Conveyor Belt Slideshow doesn't work right and judders... It would be great if anyone could help me.

jscheuer1
03-23-2007, 04:42 PM
Try replacing:


window.onload=fillup

with:


window.onload=function(){
fillup();
initLightbox();
};

You may also need to remove this line from the very end of lightbox.js:


Event.observe(window, 'load', initLightbox, false);

If you don't need to remove it though, it would be best to keep it for situations where you may link the same lightbox script to other pages that are not also using Conveyor.

facilidis
03-23-2007, 05:54 PM
Thank you very much!!! It works perfectly without removing something from the js...:)