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 8598257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:06:38+00:00 2026-06-12T01:06:38+00:00

I found this cool script that makes a zoom on an image (which I

  • 0

I found this cool script that makes a zoom on an image (which I want to use on my blog) But I want to use more pictures than just the one on the script. So I actually want to replace values in this script on mouseUp. So buttons for pic1, pic2, pic3 etc has to replace the “largeimage” and the in the body.

hope someone can help me.

jQuery(document).ready(function($){

    $('#image2').addimagezoom({
        zoomrange: [2, 2],
        magnifiersize: [460,430],
        magnifierpos: 'right',
        cursorshade: false,
        cursorshadecolor: 'pink',
        cursorshadeopacity: 0.3 ,
        cursorshadeborder: '1px solid white',
        largeimage: 'http://www.rat-bikes.com/ratbikes/vanmoof-rotterdam.jpg' //<-- No comma after last option!
    })

})
  • 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-06-12T01:06:39+00:00Added an answer on June 12, 2026 at 1:06 am

    Do this way… Have all the images with a class and an alt value with the large image.

    <img src="thumb1.png" class="zoom" alt="full1.png" />
    <img src="thumb2.png" class="zoom" alt="full2.png" />
    

    Now in the script, attach the event handler for all the .zoom and give the large image’s URL with the help of attr value of alt.

    jQuery(document).ready(function($){
        $('.zoom').addimagezoom({
            zoomrange: [2, 2],
            magnifiersize: [460,430],
            magnifierpos: 'right',
            cursorshade: false,
            cursorshadecolor: 'pink',
            cursorshadeopacity: 0.3 ,
            cursorshadeborder: '1px solid white',
            largeimage: $(this).attr("alt")
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

found this little code snippet that seems to do what i want, but im
Found out about this cool jQuery countdown which is initialized as such: <script type="text/javascript">
I have this cool little snippet that I found, which adds a shadow to
I'm working on some kind of gallery. Found cool ready solution but i want
Ok so , I found this cool code and I can't use it. You
I found this article on partial evaluation which looked pretty cool: (the long link
I found this link. Very cool. That shows how you can store appsettings in
I found this cool js gettext library -> http://code.google.com/p/gettext-js/ but I don't understand how
I'm very new for ASP.NET MVC. I found that this is very cool thing
I found this really cool page that allows you to hook up facebook into

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.