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

  • SEARCH
  • Home
  • 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 4053132
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:24:29+00:00 2026-05-20T14:24:29+00:00

I have the standard setup of one main image and multiple thumbnails which can

  • 0

I have the standard setup of one main image and multiple thumbnails which can be cliced to change the main image. I’m using jqzoom on the main image but was having the common problem of the main image changing and the zoomed image just going blank. Looking through stack overflow i found some code that claimed to correct this, and in a way it does. But rather than allow each changed image to have a zoom, it makes the main image just a link to the large version, bypassing the jqzoom function call.

to show the two examples:
with the standard jqzoom code and thumbnails not showing zooms:
http://designerspider.net/clients/jge/project2.php?id=17

with added code and images just becoming links:
http://designerspider.net/clients/jge/project.php?id=17

the code i added was

  $(".thumbs a").click(function(){  
      $(".jqclass").unbind();

      $(".jqclass").jqzoom(options);

      return false;
  };

if anyone can see if i have missed anything, or need to do it a diffferent way, i’d appreciate any and all advice. I can’t understand why adding the extra function would disable the main jqzoom feature :/

  • 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-20T14:24:30+00:00Added an answer on May 20, 2026 at 2:24 pm

    You may find, because you are using two functions side by side, one to change images, and the other to unbind the zoom function, and then rebind it, the 2nd function is finishing before the image has changed. So when the image does change, it still won’t work.

    Second problem, you are not actually unbinding anything.

    So, try firstly changing to:

    $(".jqclass").unbind(".jqclass");
    

    Alternatively you could migrate a little more to jQuery. I have tested this:

    You HTML would look like this:

    <div class="projectphotos">
        <div id="photo_1">
            <a href="http://designerspider.net/clients/jge/projects/h07_03_11_12_10_58.jpg" class="jqclass">
                <img src="http://designerspider.net/clients/jge/projects/h07_03_11_12_10_58.jpg" class="projectimg2" alt="Mid 15th C Oakeshott Type XXa" />
            </a>
        </div>
        <div id="photo_2" style="display:none;">
            <a href="http://designerspider.net/clients/jge/projects/h07_03_11_12_19_49.jpg">
                <img src="http://designerspider.net/clients/jge/projects/h07_03_11_12_19_49.jpg" class="projectimg2" alt="Mid 15th C Oakeshott Type XXa" />
            </a>
        </div>                                       
        <div class="thumbsdiv">
            <ul class="thumbs">
                <li>
                    <img rel="photo_1" src="http://designerspider.net/clients/jge/projects/h07_03_11_12_10_58.jpg" width="80" />
                </li>
                <li>
                    <img rel="photo_2" src="http://designerspider.net/clients/jge/projects/h07_03_11_12_19_49.jpg" width="80" />
                </li>
            </ul>
        </div>
    </div>
    

    And your jQuery like this, I’ve explained each line:

    var options = {
        zoomWidth: 250,
        zoomHeight: 250,
        position: 'right',
        yOffset: 0,
        xOffset: 0,
        title: false
    }
    $(".jqclass").jqzoom(options);
    
    // Make the thumbnail look clickable:
    $(".thumbs img").each(function() {
        $(this).css('cursor', 'pointer');
    });
    // React to clicking on a thumbnail:
    $(".thumbs img").click(function() {
        // Get the photo linked to:
        var photo = $(this).attr('rel');
        // Unbind the zoom:
        $(".jqclass").unbind(".jqclass");
        // Hide the current image via its parent DIV:
        $(".jqclass").parent().hide();
        // Remove teh jqclass:
        $(".jqclass").removeClass("jqclass");
        // Show the clicked photo:
        $("#"+photo).show();
        // Add the class and the zoom:
        $("#"+photo+" a").addClass("jqclass").jqzoom(options);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The setup: I have a standard .php file (index.php) that contains two includes, one
I have a standard UINavigationController setup. One particular view displays an Edit button on
I have a pretty standard table set-up in a current application using the .NET
I have a standard .NET windows service written in C#. Can it install itself
I have some standard-texts, but some portion of it is different. But of these
i have a input tag which is non editable, but some times i need
I have a medium-complex Rails app. The main controller (the one that does what
I have used the standard user tables that ASP.net setup and I'm looking to
Many languages have standard repositories where people donate useful libraries that they want others
I have a standard windows server that inherits from the ServiceBase class. On the

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.