Thanks for this nice lib, but I came into some problems...
Currently I'm using the code:
$("a.group").fancybox({ 'hideOnContentClick': false, 'zoomSpeedIn':
300, 'zoomSpeedOut': 300, 'overlayShow': false });
and it is working nice, but.... I want to add a button:
<a href="#" onclick="...">View gallery</a>, which would run the
appropriate gallery. and don't know how is it done :(
I tried this,
$("a.emulateclick").click(function () {
var rel = $(this).attr('id');
$("a").attr('rel', rel).click();
});
the id of the a.emulateclick was holding rel name of the fancybox
gallery...
It emulates lick, start gallery, but does not allow you to swich
photos, close fancybox.. etc.
so I thought maybe the is something like:
onclick=fanxybox.start('rel-name-of-the-gallery');
I'm sure somebody already solved this issue!:)
thanks!
cheers,
Jaroslav
Janis
but your reply did help me :)
thank you so much!:)
I was playing with $("a.group").fancybox().trigger('click'); - with
no luck..
I was able only to bind only 1 photo, now I understand why :)
Thank you very much and happy new year!