hello,
I had this code to stream youtube video on fancy box :
jQuery(document).ready(function () {
$(".fancybox-video").click(function () {
$.fancybox({
'padding': 0,
'autoScale': false,
'transitionIn': 'none',
'transitionOut': 'none',
'title': this.title,
'width': 640,
'height': 385,
'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
'type': 'swf',
'swf': {
'wmode': 'transparent',
'allowfullscreen': 'true'
}
});
return false;
});
});
but I had a problem : jumping to the top of the page when click on the video
how can I fix it ?
I was using this code for fancybox images to prevent jump to the top :
helpers: {
overlay: {
locked: false
}
}
but actually I do not know where I should put it in this fancybox code.