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 mac and Objective C. Interface builder is also new. I'm
I'm super new to programming and I've been using appengine to help me learn
I am trying to decorate an actual class, using this code: def my_decorator(cls): def
I have a program that get's input string with file path in one JTextArea
StackOverlow, Whats up! I am trying to append a new UL inside a div.
my php code $classObject = new class_functions(); $city = $_REQUEST['city']; $locations[] = $classObject->populate_locations($city); echo
I'm fairly new to GUI. I'm trying to make it so that depending on
Basically have many huge delimited files that I know I can import as a
I have a JSpinner using a SpinnerDateModel which has a start at Jan 1,
Given 2 lists, how can you produce an output of a 3rd list which

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.