Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7669859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:41:26+00:00 2026-05-31T15:41:26+00:00

I’m losing my mind here. I have a conflict getting cloud zoom to work

  • 0

I’m losing my mind here. I have a conflict getting cloud zoom to work within fancybox. I’ve narrowed it down to having something to do with my #fancyboxContent style being set “display:none;” because if I remove that – cloudzoom will work in fancybox – unfortunately, that means it’s visible on my main page BEFORE I open an overlay fancybox, which defeats the purpose.

This seems to be a common issue, because I’ve found three other versions of this question on SO, but unfortunately, they have gone unanswered…

So, I’ve got two pages running – the first with cloudzoom working, because the div is visible
(Click on the first painting “Auzie’s Ass” to see fancybox/cloudzoom working:
http://test.fatcat-studios.com/RnR/art_kelly_dodge2.html

Here’s the page looking as it should, with the fancybox div hidden, but if you click on “Auzie’s Ass” (I didn’t name it!) then you’ll see the fanycbox open, but no zoom functionality:
http://test.fatcat-studios.com/RnR/art_kelly_dodge.html

Any ideas? I’m on deadline and pulling my hair out!!
This seems to be the code that’s at issue, but I can’t see why!

<style>
    div#FancyboxContent {
        display:inherit;
    }
</style>

Thanks!

UPDATE:
FYI: So, I was able to get this to work using this, not sure it’s the best way:

$("a.various").fancybox({

'scrolling'     : 'no',
'overlayColor'  : '#000',
'overlayOpacity': '0.9',
'transitionIn'  : 'none',
'transitionOut' : 'none',
'titlePosition' : 'inside',
    'onComplete'    :   function(arg) {
    // Here does the magic starts
    $('#fancybox-img').wrap(
        $('<a>')
        .attr('href', $(arg[0]).attr('href'))
        .addClass('cloud-zoom')
        .attr('rel', "position: 'inside'")
    );
    // That's it
    $('.cloud-zoom').CloudZoom();
   }
});

with this HTML:

<a class="various" href="#inline1">Fancybox Open</a>

<div style="display: none;">
<div id="inline1" style="width:700px;height:600px;">
<table id="TableContent">
      <tr><td style="vertical-align: top;" width="305">
       <a href='../content/art/kellydodge/Australorpe_Ass.jpg' class='cloud-zoom' id='zoom1' rel="adjustX: 0, adjustY:-4">
        <img src="../content/art/kellydodge/Australorpe_Ass.jpg" width="300" title="Auzie's Ass" /></a>
</td>
<td style="vertical-align: top;">
 <p><b>Kelly Dodge</b></p>
 <p>text here</p>
</td></tr></table>

</div>
</div>

It can be seen here: test.fatcat-studios.com/RnR/fancybox/index2.html

Thanks so much!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:41:27+00:00Added an answer on May 31, 2026 at 3:41 pm

    The reason you are having a problem is that cloudzoom like many scripts depends on data from the browser that is not available with invisible objects. So you you need to call cloudzoom AFTER fancybox has opened, it will then be visible and able to work.

    I noticed that you are not actually calling fancybox anywhere, but rather just using the class="fancybox" convention to make the popup. So we will have to setup fancybox to call cloudzoom like this:

     $(document).ready(function () {
          $.fancybox({
               onComplete : function(){
                   $('.cloud-zoom, .cloud-zoom-gallery').CloudZoom();
               }
          });
     });
    

    also I noticed you are including cloud-zoom.1.0.2.js and could-zoom.1.0.2.min.js in your document, please remove one of them as it might cause problems.

    Another problem you may run into with this, is if you have more than one fancybox with cloud-zoom content, this script will run .CloudZoom(); again, which is likely to cause problems. So I suggest you not use the class="fancybox" convention and instead call it manually, something more like this:

     $(document).ready(function () {
          $('.cloudyBox').each(function(){
               var preCloudHtml = $('uniqueCloudZoomForThisBox').html();
               $(this).fancybox({ //new class to use instead of fancybox
                     onComplete : function(){
                          //create unique cloudzoom after fancybox is open
                          $('uniqueCloudZoomForThisBox').CloudZoom();
                     },
                     onClosed   : function(){
                          //destroy cloudzoom when fancybox closes to prevent it doubling up
                          $('uniqueCloudZoomForThisBox').html(preCloudHtml);
                     }
               });
          });
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.