Is it possible to use a link to link to an iFrame of content that opens in a lightbox or fancybox?
EG; View my Graphic Design Gallery Click Here > Lightbox displayin
Lightbox is designed only for images but you can use fancybox.
there are 2 ways to do it:
$.fancybox({'href':'http://www.google.com',
'type':'iframe'
});
or:
google
jQuery(document).ready(function () {
$("#linktogoogle").fancybox();
});
Clicking on the link will load google in an iframe. if you want it to load without clicking :
jQuery(document).ready(function () {
$("#linktogoogle").fancybox().click();
});
You may also set the link visibility style to hidden.