1) Script Title: CMotion Image Gallery
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...iongallery.htm
3) Describe problem:
Hi:
I'm using a variation of CMotion Image Gallery in this site:
http://www.pintorcastanyer.com/MUBAG.htm
As you can see, it works properly.
Below in the same site, there is a table that uses Lightbox to display images.
My problem is that I want use the CMotion script in combination with Lightbox. I mean, when I click on an image of CMotion I would like it runs Lightbox intead of opening new windows.
As you can see, the code for the CMotion for the first image is:
HTML Code:
<a href="#"><img src="mubag/1Autorretratob.jpg" border=1 onClick="MM_openBrWindow('mubag/cat1.htm','Cat1','scrollbars=yes,resizable=yes,width=wd,height=ht,left=0,top=0')" width="171" height="235" alt="Autorretrato"></a>
I have tried to implement this code for Lightbox substituing a href="#" for the image location:
HTML Code:
<a href="mubag/1Autorretrato.jpg" rel="lightbox[mubag]"><img src="mubag/1Autorretratob.jpg" border=1 onClick="MM_openBrWindow('mubag/cat1.htm','Cat1','scrollbars=yes,resizable=yes,width=wd,height=ht,left=0,top=0')" width="171" height="235" alt="Autorretrato"></a>
It doesn't work because two equal images are loaded in the "rel" of the Lightbox.
Thanks for any ideas.
Bookmarks