Home > load fancybox automatically on load

load fancybox automatically on load

How to launch fancybox automatically when a page is loaded

Posted on February 08, 2013 | Filed in Featured, jQuery

Put this in between the <head></head> tags. <script type=”text/javascript”> $(document).ready(function() { $(“#my_fancybox_id”).fancybox().trigger(‘click’);< }); </script> In the body/content area put in a link. Hide it if you like. <a href=”#my_content_div” id=”my_fancybox_id”>Click…