2012-08-08, 17:44:49
mvlcek Wrote:widecircle Wrote:Hi there!
Does anyone how to get the "real" url for a big image that you want to open in fancybox rather than the /?=galleryname:-2 or so.
Reason is I'm using this with the new Fancybox.
I've realised that changes is needed in the helper.php & the function "i18n_gallery_pic_link".
Not sure just yet how to acheive this...
Niklas
The links in the original HTML are for the fallback, if javascript is switched off.
If javascript is switched on, these links are automatically replaced with the real image links by Javascript.
Ah - I see!
Thanks for a superfast answer & a great plugin!
So now I know which part that is taking care of this.
There will be quite a lot of images so the js-part:
$(document).ready(function()
{
var $sel = $("[rel=fancybox-test]")
$sel.get(0).href = 'http://mysite.com/data/uploads/banners.png';
$sel.get(1).href = 'http://mysite.com/data/uploads/exp.png';
$sel.fancybox
({
cyclic: true
});
});
--- will grow & become really long after a while.
I'm using fancybox & I would actually much rather use:
$(document).ready(function()
{
$("a#fb").fancybox();
});
I will look into this.
Niklas