I just had a brainstorm. Keep the external scripts as we have them on the 'top' page (indexv2.html). Forget about the polling function and the polled for id etc. Here is a simpler method that should work. For your link that loads the album have this:
Code:
<a href="javascript:ajaxpage('album.html', 'contentarea');" onmousedown="window.albumInit=false;">Photo Album</a>
Then, on the external album page (album.html), have each lightbox link include this event:
Code:
onmouseover="if(!window.albumInit){initLightbox();window.albumInit=true;};"
Example:
Code:
<a href="http://i119.photobucket.com/albums/o141/boxxertrumps/fall.png" rel="lightbox" title="Caution: Falling HTML Tags" onmouseover="if(!window.albumInit){initLightbox();window.albumInit=true;};">
<img src="http://s119.photobucket.com/albums/o141/boxxertrumps/th_fall.png" /></a>
Bookmarks