17. December 2013 19:54
/
Fozail
/
Comments (0)
If you ever have to show some content e.g. a div with fancybox pop up on page load, its pretty simple. Add your content to a div and then hide it with css using display:none. As described in this post, if you have fancybox version 1.3.4, add the following code
Add the following code and you should see the fancybox popup with the hidden div as its content.
$(document).ready(function(){ var popup= $('#popup').css('display','block'); $.fancybox({content:popup}); })
5a960ee0-9ba0-4ab6-ab34-8c533928d087|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04