this content was originally posted here.

fancybox youtube showing video links in a lightbox

do people still use lightboxes, it seems yes in some cases. ;)

if you feel the urge to use lightboxes and need to link to some youtube videos this is how you can do it.

you will need jquery and fancybox and a youtube video link for this to work

<link rel="stylesheet" href="">
<script src=""></script>
<script src=""></script>

I found this example somewhere, cant remember where that adds the fancybox code to any link with the class video

<script>jQuery(document).ready(function() {

	    type: "iframe"


Add a link to the video, e.g:

here is a test link

Click it to see if it works...

View Demo