you may create different scripts for different types of content
some may be iframes, some images and some flash content (including
youtube video) and of course each of them needs different scripts with
different options, however they can be in the same gallery as long as
they share the same rel attribute value
PLEASE NOTICE that you cannot mix manual calls in this type of mixed
gallery
The youtube js example in
fancybox.net is a manual call ... your would
need to convert it to a direct link call so
from this
$("#tip4").click(function() {
$.fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'title' : this.title,
'width' : 680,
'height' : 495,
'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
'type' : 'swf',
'swf' : {
'wmode' : 'transparent',
'allowfullscreen' : 'true'
}
});
return false;
});
to this:
$("#tip4").fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn': 'none',
'transitionOut': 'none',
'title': this.title,
'width': 680,
'height': 495,
'href': this.href,
'type': 'swf',
'swf': {
'wmode': 'transparent',
'allowfullscreen' : 'true'
}
});
and the call
from this
<a id="tip4" title="'Zombieland' Trailer" href="
http://www.youtube.com/
watch?v=M-cIjPOJdFM&fs=1">Try now</a>
to this
<a id="tip4" title="'Zombieland' Trailer" href="
http://www.youtube.com/
v/M-cIjPOJdFM&fs=1">Try now</a>