If you are using:
http://www.dynamicdrive.com/dynamici...box2/index.htm
You don't really want to re-init it over and over again. That would (in addition to initializing imported links) also add the lightbox framework elements to the page each time, confusing the heck out of many browsers.
With lightbox and Ajax, I've been recommending this approach -
Put the lightbox scripts and style links on the top page. On your external pages, use the hard coded onclick event with each lightbox link, ex (from the demo page, addition red):
Code:
<a href="images/image-1.jpg" rel="lightbox" onclick="myLightbox.start(this); return false;" title="my caption">image #1</a>
Bookmarks