I am new in Jquery and fancyBox v.2 (fancyApps) and need some clarifications:
1) What is the function/purpose of fancyBox media helper and the difference if I use e.g. fancyBox iFrame feature e.g. youtube(iframe)?
$(document).ready(function() {
$('.fancybox-media').fancybox({
openEffect : 'none',
closeEffect : 'none',
helpers : {
media : {}
}
});
});
<a class="various fancybox.iframe" href="http://www.youtube.com/embed/L9szn1QQfas autoplay=1">Youtube (iframe)</a>
2) Beside linking the following js in the header, do I need addtional css file?
<script type="text/javascript" src="/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.0"></script>
Thanks
The explanation and use in the js file itself. It allows you have any anchor targeting the most common media formats like
...using a simplified custom script like
(no type, dimensions, or complex
replace
functions within the script)The supported formats (inside the
href
attribute) are:BTW, you don't need any additional CSS file, just use it as indicated above.