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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:43:15+00:00 2026-05-15T13:43:15+00:00

Im super new to Jquery so this may be a quick one. I have

  • 0

Im super new to Jquery so this may be a quick one. I have a mousedown function on a class named “thumb_resize”. I have multiple divs named thumb_resize. So, the first time the mousedown function gets called it works perfectly, but it breaks when I try to call it from another element.

Maybe its easier if I show you:

http://www.barrylachapelle.com/stuff/new_site/drag_test2.html

If you grab an arrow on one of the thumbnails and drag it, itll blow the image up. If you let go it animates back to its original position. Great, happy with that. But if you try it a second time on another thumbnail it animates the first as well.

Any ideas?

Cheers all.

  • 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-15T13:43:15+00:00Added an answer on May 15, 2026 at 1:43 pm

    This is because you’re attaching an event handler to document on each mousedown, here:

    $(document).mousemove(...);
    

    This is fine, but you need to .unbind() it in your mouseup event:

    $(this).mouseup(function(){
      $(document).unbind('mousemove');
      mouse_down = false;
      $('.thumb').animate( { height: 115 }, 100);
      $('.thumb').animate( { width: 200 }, 100);
    });
    

    Here’s a demo with only that change so you can see it working 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm super new to this language. I have the ability to check for the
I'm pretty new to Java so sorry if this is super basic. Basically I
This is super strange. I used a portion of code for a new project
I'm new to PHP/MySQL and super-new to CodeIgniter.. I have information in many MySQL
I'm super new to programming, I currently have a table of venues which can
I'm super new to rails and javascript, I have a table of venues with
I'm am super new at this, and this is my first time ever using
I am super new to HP Qc and HP QTP. I have setup the
we use super-long Hashes for the Registration of new Users in our Application. The
HTML5 will be next super star. So~~~How to using new idea to implement AJAX

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.