How to set fancybox with multitype objects?
I have this:
$("a.fancybox").attr('rel', 'gallery').fancybox({ 'type'
: 'swf' });
youtube works fine, but all images goes flash format.
When i remove type, images works fine, but youtube dont load. I figured out this.
If links are $("a[href$=.jpg],a[href$=.png],a[href$=.gif]") type image, else swf.
How to write this perfect?