PDA

View Full Version : Carousel II and Lightbox 2.03a



npimpfellow
02-04-2009, 10:46 PM
I'm also interested in how this can be done!

do I need to insert

onclick="myLightbox.start(this);return false;"

in the link section of the code or do I have to write somthing else in!
please advise!

refers to:
http://www.dynamicdrive.com/forums/showthread.php?t=12250

npimpfellow
02-04-2009, 10:59 PM
I'm sure what needs to be edited is this part of the code


for(var i=0;i<params.images.length;i++){
images[i]=img.cloneNode(true);
images[i].src=params.images[i];
if(params.links&&params.links[i]&&params.links[i]!=''){
images[i].onclick=new Function("window.location='"+params.links[i]+"'");
images[i].style.cursor=document.all?'hand':'pointer';
}


I tried

images[i].onclick=new Function("window.location='"+params.links[i]+"' rel="lightbox"");

and also
images[i].rel=lightbox

didn't work


oh yeah, also I'm using this version of carousel

http://www.dynamicdrive.com/dynamicindex14/carousel2.htm