PDA

View Full Version : using Conveyor Belt slideshow and Lightbox image viewer 2 togther



leegti
09-29-2007, 11:47 AM
1) Script Title:
Conveyor Belt slideshow
and
Lightbox image viewer 2

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


3) Describe problem:
Hi all.. im new here, and hoping you guys can help me out..
heres the problem.
Using the 2 above scripts together works fine in IE, but come to use it in FireFox and the lightbox script stops working..
Both work fine seperatly, just not together.

jscheuer1
09-29-2007, 06:25 PM
I would try adding (red) this in Conveyor:


function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
initLightbox();
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

And removing this:


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

from the end of the lightbox.js file.

If you need more help:

Please post a link to the page on your site that contains the problematic script so we can check it out.