Launch Gallery from a Link or Other Image or Element
Permalink Browser Info Environment
I had a client who wanted to launch the gallery from a link or other image. I came up with this which seems to do the right thing, when placed beneath the fancybox gallery block:
One could also use:
to hide the entire gallery, and have it accessible only by trigger element, kind of a popup lightbox.
<p><a href="#" id="SlideShowTrigger">[Show as slide show]</p> <script type="text/javascript"> $(document).ready(function(){ $('#SlideShowTrigger').click(function(e){ e.preventDefault(); $('.sortable_fancybox_gallery_container .sortable_fancybox_gallery_image:first-child img').trigger('click'); }); }); </script>
One could also use:
div.sortable_fancybox_gallery_container { display:none; }
to hide the entire gallery, and have it accessible only by trigger element, kind of a popup lightbox.
Type: | Discussion |
---|---|
Status: | New |