-
1. Re: Adobe Animate and Fancybox plugin problem
heathrowe Oct 2, 2012 6:51 PM (in response to sbest58)Just before your sym.$("Rectangle")......section, try this
$(function() {
$("div").attr("rel', "gallery");
});
Darrell
-
2. Re: Adobe Animate and Fancybox plugin problem
sbest58 Oct 3, 2012 12:07 AM (in response to heathrowe)Thank you Darrell, that is the perfect answer to my question.
It adds rel="gallery" to the rectangle divs, (and every other div but that is easy to filter out).
Unfortunatly Fancybox does not seem to recognise the 'rel' attribute inside a <div>, maybe its looking for an <a> tag.
-
3. Re: Adobe Animate and Fancybox plugin problem
sbest58 Oct 9, 2012 10:37 AM (in response to sbest58)Finally got it working: http://revisiondesign.com/
-
4. Re: Adobe Animate and Fancybox plugin problem
xROYOSTIx Dec 27, 2012 9:19 AM (in response to sbest58)is it possible to show how u fixed it?
I have a symbol with multiple thumbnails in it
on every thumbnail there is a clickevent with the code:
$.fancybox({
href: 'images/rood.png',
openEffect:'elastic',
closeEffect:'elastic',
});
i tried to use
$("div").attr("rel","gallery");
$("thumbnailWithClickEvent").attr("rel","gallery");
but that doesn't seem to do the job
-
5. Re: Adobe Animate and Fancybox plugin problem
sbest58 Dec 28, 2012 3:43 AM (in response to xROYOSTIx)Hi,
For the thumbnails I first create an array and a function:
var group = [
{
href : 'images/1.jpg',
title : 'Whatever'
},
{
href : 'images/2.jpg',
title : 'Whatever'
},
{
href : 'images/3.jpg',
title : 'Whatever'
},
]
function open_fancybox(index){
$.fancybox.open(
group,
{
index: index,
padding : 0
}
);
}
Then for each thumbnail a click event:
open_fancybox(0);
Hope this helps
Steve
open_fancybox(1);
open_fancybox(2);
-
6. Re: Adobe Animate and Fancybox plugin problem
xROYOSTIx Dec 28, 2012 4:59 AM (in response to sbest58)Thanks, it works perfect! U just made my day.
When i see your code now, it looks so easy... but I lost about 2 days on it
Merry christmas & a happy new year
-
7. Re: Adobe Animate and Fancybox plugin problem
sbest58 Dec 28, 2012 6:11 AM (in response to xROYOSTIx)You are very welcome,
Happy Christmas and have a great 2013


