I love the Shadowbox effect but can't get it to work from within an iframe.
The thumbnails with the rel=shadowbox are on a page that opens in an iframe. If I click on the thumbnail, the image just opens in the iframe without the shadowbox effect.
With lytebox I can get it to work, but I like shadowbox much more.
Thanks a lot for anyone willing to help me out here!
So don't place the shadowbox code in the page that opens the iframe but in the page that has the thumbnails.
Thanks very much for your kind reply, sorry i haven't answered earlier, been busy with other stuff.
If you want to see what the problem is please check www.yishi.nl and click the foto's button. The images are shown with Lytebox and it works like a charm. if you open www.yishi.nl/index_nieuw.html and click the foto's button, the images will open with shadowbox (and in the iframe, not full screen).
I hope you, or someone else, can point me in the right direction. I just really like the shadowbox lay-out.
Shadowbox is not built to run within a frame, whereas lytebox is.
It's probably possible to get it to run in the top window, on elements within the frame window, using custom scripting (in both windows) and Shadowbox.open(). But to get gallery functionality as well would need DOM injection in the top window and a more complex script.
Alternatively, update the shadowbox script to add in-frame capability!
Combine literacy with curiosity and a whole world of information opens up to you