i want to show a Vimeo video in an iframe using fancybox.
This is my code:
$(document).ready(function() {
$(".fancyvarious").fancybox({
maxWidth : 800,
maxHeight : 600,
fitToView : false,
width : '70%',
height : '70%',
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
});
the link:
<a class="fancyvarious fancybox.iframe" href="http://vimeo.com/videoID"><img src="linkurl.jpg" alt="" width="950" height="400" /></a>
When I click on the image, it shows the iframe, but then it goes to the url… I only want to show the iframe.
Anybody can help me ?
Thanks!
http://fancyapps.com/fancybox/demo/