Hi, This is pretty old, but I was looking of exactly the same thing! I found something that works great for me. Here is the method:
1. Load the scripts and css needed to run lightbox in the parent page
2. Create a function in the parent page like the one below:
function openImage(input)
{
myLightbox.start(input);
return false;
}
3. Inside the iframe page write links of the following format:
HTML Code:
<a link="images\target_image.jpg" rel="lightbox" onClick="self.parent.openImage(this)" OnMouseOver="this.className='cursor';" style="cursor:pointer;cursor:hand;"><img src="images\target_image_small.jpg"></a>
4. Modify file lightbox.js :
on line
331,
replace: imageArray.push(new Array(imageLink.getAttribute('href'), imageLink.getAttribute('title')));
with: imageArray.push(new Array(imageLink.getAttribute('link'), imageLink.getAttribute('title')));
Bookmarks