
Originally Posted by
jbert
Commander cody So glad I found some lightbox2 actual help. I have succesfully installed Lightbox2 with the captioned links. When the link is clicked a new page opens. I would like the linked window in a lightbox also. I have insertes the rel="lightbox" at every place and it just will not do it. Is this because the other lightbox from the SET [vac] is still open???
can this be done please
I'm not sure I get you. You say you put rel="lightbox" at every place. This is usually an act of desperation, and at the same time tells me little about what you have actually tried. Also, I'm not clear what you are trying to open from the linked caption or if that is really what you are trying. It sounds like you are:
Opening a normal lightbox link with an image and a caption shown in the lightbox. You have somehow worked it out that the caption shown in the lightbox is itself a link. Now you want that link, when clicked to open in the lightbox.
If I have that much right, that can be done, if that second link is to an image. Lightbox only does images. But the second link cannot be made to open in the lightbox by using the rel="lightbox" attribute alone - because for that, the link must exist when the page loads, but you are creating it at the time that the caption is loaded into the lightbox.
Working on the demo page that comes with v2.03 of lightbox I put a script block in the head to define my caption link:
Code:
<script type="text/javascript">
var t1='<a href="photo9.jpg" rel="lightbox" title="Monalisa" onclick="myLightbox.start(this); return false;">Photo 9</a>';
</script>
And changed the demo link to:
Code:
<a href="images/image-1.jpg" rel="lightbox" onmouseover="this.title='test';" onmousedown="this.title=t1;"><img src="images/thumb-1.jpg" width="100" height="40" alt="" /></a>
This worked out pretty well, but as I say, the 'box from within the box link' must be to an image. I say 'pretty well', because there is a flickering of the overlay, but this can be easily fixed by editing lightbox.js and modifying the added link slightly, if this is what you are really trying to do.
Bookmarks