I am trying to use the prettyPhoto for jQuery to add a video to my website.
I did add the jQuery source code and the prettyPhoto js location in my head, and before the end of my body tag, and I also added the initializing code (as said in the documentation).
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>
In my HTML, this is what I wrote because I wanted the video to show too, but when someone clicks on it the video should open as lightbox.
<div id="video_player">
<a href="#" rel="prettyPhoto">
<iframe width="640" height="350" src="http://www.youtube.com/embed/cH6kxtzovew" frameborder="0" allowfullscreen></iframe>
</a>
</div>
But it's not working. How do I make this happen?