Wednesday, June 5, 2013

How to open fancybox on page loading of a site and some other fancybox 2 techniques

If you want to open a fancybox 2 on page loading of a site please add the following code in the document ready of jQuery.

Using the following codes you can prevents closing when clicking OUTSIDE fancybox 2.

If you want to remove the close button of fancybox 2 just copy the following code into the document ready function.

If you want to download the fancybox 2 from here