AD Gallery + Fancybox

Oct 24, 2012 at 11:43 AM
Edited Oct 24, 2012 at 11:46 AM

Hi, i'm new in this forum and i work on a site made with OSClass that use AD Gallery but i want to integrate FancyBox, I read the forum and I edit the header of my site with this code:

 

<link rel="stylesheet" href="http://www.keysoftitalia.it/RoyalFin/oc-content/themes/realestate/js/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://www.keysoftitalia.it/RoyalFin/oc-content/themes/realestate/js/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript" src="http://www.keysoftitalia.it/RoyalFin/oc-content/themes/realestate/js/fancybox/jquery.fancybox.js"></script>

<script type="text/javascript">
  /* ad galery init */
  $(function() {
    var galleries = $('.ad-gallery').adGallery({
      loader_image: 'http://www.keysoftitalia.it/RoyalFin/oc-content/themes/realestate/images/gallery/loader.gif',
      effect:'fade',
	  display_back_and_forward:false
    });
   });

  $(document).ready(function(){
    /* for jQuery 1.7+ live is no longer supported */
    $(document).on("click", ".ad-image", function() {
      $.fancybox.open({
        href : $(this).find("img").attr("src"),
        closeBtn: false,
        closeClick : true,
        openEffect : 'elastic',
        openSpeed  : 150,
        closeEffect : 'elastic',
        closeSpeed  : 150,
        helpers : {
          overlay : null
        }
      });
    });
  });
  
</script>

 

But don't work!

Sorry for my english! The page can view here

Thanks at all!

May 27, 2013 at 3:27 AM
Hi there

I am having the same problem.

I am trying to get fancybox to work with add gallery but it does not work.

Were you successful getting it to work?

I read in the documentation that it is possible, but I cant get it to work?

Any help would be great.

An example of the code in your header, and the actual html code for your gallery image links (which classes used, as there are both fancy and ad gallery classes used) would be great

Look forward to hearing from you

Have a nice day
May 27, 2013 at 8:21 AM
Hi I'm working Hard for integrate ADGallery and Fancybox but I only lose my time! :(

Inviato da iPhone

Il giorno 27/mag/2013, alle ore 05:27, "mrcharis" <[email removed]> ha scritto:

From: mrcharis

Hi there

I am having the same problem.

I am trying to get fancybox to work with add gallery but it does not work.

Were you successful getting it to work?

I read in the documentation that it is possible, but I cant get it to work?

Any help would be great.

An example of the code in your header, and the actual html code for your gallery image links (which classes used, as there are both fancy and ad gallery classes used) would be great

Look forward to hearing from you

Have a nice day