Home › Forums › Storm HTML › Fancybox Pop – YouTube video on iPhone & iPad
- This topic has 3 replies, 2 voices, and was last updated 11 years, 9 months ago by edgarj.
- AuthorPosts
- February 20, 2013 at 10:20 am #3008edgarjParticipant
Hi Themecatcher,
I have a site which opens a YouTube video in a Fancybox window. This works in a standard browser and interestingly in an iPad1 but not later versions of the iPad or iPhone. I appreciate that this is outside of the scope of the Storm template but wondered if you may have any advice. Should I upgrade to Fancybox2 for example. I am more than happy to [privately] send you the URL to the site if that would help.
Here’s the Javascript that I am using for Fancybox and video.
jQuery(document).ready(function(){
jQuery(“a#videolink”).fancybox({
frameWidth: 480,
frameHeight: 295,
autoSize: false,
overlayShow: true,
overlayOpacity: 0.7
});
});Many Thanks and well done on such a great theme.
February 20, 2013 at 10:44 am #3012AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 21, 2013 at 10:23 am #3039AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 22, 2013 at 1:13 am #3054edgarjParticipantIt works..! Thanks Ally.
Here’s the javascript and link – in the hope that it will help anyone else with a similar issue.
$(“#fancybox-video”).click(function() {
$.fancybox({
‘padding’ : 0,
‘autoScale’ : false,
‘transitionIn’ : ‘none’,
‘transitionOut’ : ‘none’,
‘title’ : this.title,
‘width’ : 680,
‘height’ : 495,
‘href’ : this.href.replace(new RegExp(“watch\\?v=”, “i”), ‘v/’),
‘type’ : ‘iframe’
});return false;
}); - AuthorPosts
- You must be logged in to reply to this topic.