jquery - Fancybox version 3 beta: How to use "index" to jump directly to a specific picture -
I am using Fancybox for a simple gallery, such as with HTML
& Lt; Div class = "item" href = "0 showcase / abstract / img / e75_2056.aggg" data-fancybox-group = "button" title = "" & gt;
Sometimes I need to show the image directly on the basis of # number for which I use the following code:
if (window .location. Hash) / warning (using the 'index:' + parseInt (location.hash.substring (1))); $ Fancybox.open ($ (". Item"), {index: 3}); // hardcoded for testing};
This works fine in version 2, but version 3 does not always show the first picture, your help would be appreciated!
Comments
Post a Comment