fancybox-2

Youtube Video not working within fancybox on ipad when using jquery.fancybox-media.js

好久不见. 提交于 2019-12-01 11:04:15
问题 I am trying to use youtube video within a fancybox with responsive features such that it can adjust its dimensions according to the device for that i had used jquery.fancybox-media.js and it works well on desktop but video doesn't play on iPad . Visit http://fancyapps.com/fancybox/ then clicking on Youtube(iframe) it only plays on desktop but not on iPad. It uses jquery.fancybox-media.js 回答1: Since fancybox version 2.1.0 there is an iframe API option that allows you to preload the contents of

How to not show the first image when you open the gallery - Fancybox 2

余生颓废 提交于 2019-12-01 10:43:53
I using Fancybox 2 to create a image gallery with the examples from their website: http://fancyapps.com/fancybox . I'm hiding all of the images except the first using using "display: none;" HTML <a class="fancybox" href="http://fancyapps.com/fancybox/demo/1_b.jpg"><img src="http://fancyapps.com/fancybox/demo/1_s.jpg" alt=""/></a> <div class="hidden"> <a class="fancybox" href="http://fancyapps.com/fancybox/demo/2_b.jpg"><img src="http://fancyapps.com/fancybox/demo/2_s.jpg" alt=""/></a> <a class="fancybox" href="http://fancyapps.com/fancybox/demo/3_b.jpg"><img src="http://fancyapps.com/fancybox

How do you set different height/width for iframe in fancybox V2?

烈酒焚心 提交于 2019-12-01 09:03:01
I have been using Fancybox 1.3.4, and right there I have the dimensions of the iframe in the link itself. Here is an example of how I have it test.html?width=675&height=470 When I click on the link fancybox will open the iframe with those dimensions. I am trying Fancybox V2, but I'm confused on how to set the dimensions for the iframes. I want every iframe to have different dimensions. How would I do it? Set your html (with HTML5 DOCTYPE ) like this: <a class="fancybox fancybox.iframe" data-width="675" data-height="470" href="test.html" >test</a> <a class="fancybox fancybox.iframe" data-width=

How to not show the first image when you open the gallery - Fancybox 2

自古美人都是妖i 提交于 2019-12-01 08:07:29
问题 I using Fancybox 2 to create a image gallery with the examples from their website: http://fancyapps.com/fancybox. I'm hiding all of the images except the first using using "display: none;" HTML <a class="fancybox" href="http://fancyapps.com/fancybox/demo/1_b.jpg"><img src="http://fancyapps.com/fancybox/demo/1_s.jpg" alt=""/></a> <div class="hidden"> <a class="fancybox" href="http://fancyapps.com/fancybox/demo/2_b.jpg"><img src="http://fancyapps.com/fancybox/demo/2_s.jpg" alt=""/></a> <a class

How do you set different height/width for iframe in fancybox V2?

戏子无情 提交于 2019-12-01 07:12:20
问题 I have been using Fancybox 1.3.4, and right there I have the dimensions of the iframe in the link itself. Here is an example of how I have it test.html?width=675&height=470 When I click on the link fancybox will open the iframe with those dimensions. I am trying Fancybox V2, but I'm confused on how to set the dimensions for the iframes. I want every iframe to have different dimensions. How would I do it? 回答1: Set your html (with HTML5 DOCTYPE ) like this: <a class="fancybox fancybox.iframe"

Fancybox urls without .jpg opens not in box

大憨熊 提交于 2019-12-01 06:20:55
I have seen a similar question here : Fancybox chokes on a URL that contains "&" And I have tried all offered solutions but none of them work ! I have included correctly all links, ( the jquery link first ) I checked, and at the beginning of my document, I declared fancybox like this : <script type="text/javascript"> $(document).ready(function() { $(".fancybox").fancybox({'type' : 'image'}); openEffect : 'none', closeEffect : 'none' }); }); </script> My code is : echo '<a class="fancybox" rel="group1" href="square/'.$fic_serie .'"> <img src="square/'.$fic_serie .'" alt=""/></a>'; $fic_serie is

Fancybox urls without .jpg opens not in box

江枫思渺然 提交于 2019-12-01 05:32:05
问题 I have seen a similar question here : Fancybox chokes on a URL that contains "&" And I have tried all offered solutions but none of them work ! I have included correctly all links, ( the jquery link first ) I checked, and at the beginning of my document, I declared fancybox like this : <script type="text/javascript"> $(document).ready(function() { $(".fancybox").fancybox({'type' : 'image'}); openEffect : 'none', closeEffect : 'none' }); }); </script> My code is : echo '<a class="fancybox" rel

Can you explain $.fancybox.open( [group], [options] ) params and if I can add youtube link as href?

自作多情 提交于 2019-12-01 04:16:40
问题 I'm reading documentation: http://fancyapps.com/fancybox/#docs and the $.fancybox.open( [group], [options] ) and open explanation is good, but I'm wondering if I can use a link to a youtube video in the group array? I'm attempting to play a youtube video after the dom is ready such as this: http://jsfiddle.net/STgGM/ $.fancybox.open([ { href : 'http://fancyapps.com/fancybox/demo/1_b.jpg', title : '1st title' }, { href : 'http://fancyapps.com/fancybox/demo/2_b.jpg', title : '2nd title' } ], {

Unbind/Destroy fancybox 2 events

 ̄綄美尐妖づ 提交于 2019-12-01 04:00:30
I am having a strange issue, I have code that pulls content via ajax and then binds Fancybox (2) to certain elements. The issue is that when I "refresh" this page I call the same function that pulls and binds Fancybox again. My normal approach that has been working up until I changed to Fancybox 2 is to unbind the elements and rebind them. This however does not seem to be working with FB2. I have tried the following: $('.tool_button').unbind('click.fb'); $('.tool_button').unbind('click'); $('.tool_button').unbind(); $('.tool_button').off('click.fb'); $('.tool_button').off('click'); $('.tool

Unbind/Destroy fancybox 2 events

爷,独闯天下 提交于 2019-12-01 01:11:36
问题 I am having a strange issue, I have code that pulls content via ajax and then binds Fancybox (2) to certain elements. The issue is that when I "refresh" this page I call the same function that pulls and binds Fancybox again. My normal approach that has been working up until I changed to Fancybox 2 is to unbind the elements and rebind them. This however does not seem to be working with FB2. I have tried the following: $('.tool_button').unbind('click.fb'); $('.tool_button').unbind('click'); $('