javascript - Fancybox Youtube issue -
having real issues using fancy box display youtube videos. i've followed instructions from:
http://fancyapps.com/fancybox/
rather displaying youtube video in pop-out window on website it's supposed to, takes me direct youtube instead.
can help?
javascript/fancybox:
<script type="text/javascript" src="fancybox/source/jquery.fancybox.pack.js"></script> <script type="text/javascript" src="fancybox/lib/jquery.mousewheel-3.0.6.pack.js</script> <link rel="stylesheet" href="fancybox/source/jquery.fancybox.css" type="text/css"media="screen" /> <script type="text/javascript"> $(document).ready(function() { $(".info").fancybox({ openeffect : 'elastic', closeeffect : 'fade', helpers : { media : {} } }); }); </script>
html:
<div class="view view-first"> <img src="http://www.intelligenthq.com/wp-content/uploads/2012/01/capital-markets1-360x194.jpg" /> <div class="mask"> <h2>title</h2> <p>your text</p> <a href="http://www.youtube.com/watch?v=92c3dx-aoxs" class="info">play</a> </div> </div>
looking @ examples seems may have opt-in behavior including media helpers:
<!-- optionally add helpers - button, thumbnail and/or media --> <script type="text/javascript" src="/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.5"></script>
by default fancybox won't perform transform on such links, if explicitly enabled on them (because without fancybox-media
doesn't know how).
Comments
Post a Comment