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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:42:50+00:00 2026-05-24T10:42:50+00:00

I am using jQuery’s transfer() to move images to a center picture frame when

  • 0

I am using jQuery’s transfer() to move images to a center picture frame when the user hovers their mouse on the image. Here’s what’s supposed to happen:

  1. User hovers their mouse on a thumbnail.
  2. Thumbnail transfers to a picture frame in center of page.
  3. Thumbnail disappears.
  4. User hovers on a second thumbnail.
  5. This thumbnail replaces other picture in the center frame, AND the first thumbnail reappears.
  6. User hovers on first thumbnail again.
  7. repeat steps 2-3.

All of steps 1-5 work in my code, which you can see in this jsFiddle. Step 6-7 are not working. It’s as if the transfer code is being removed from the image by steps 2 & 3.

  • 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-24T10:42:51+00:00Added an answer on May 24, 2026 at 10:42 am

    It is happening because you are using one method to bind the event. I have fixed it take a look at this fiddle here

    Code

    var imgPath = new Object;
    imgPath["gen"] = "http://techfeed.net/dyany.com/images/genealogyLarge.png";
    imgPath["bo"] = "http://techfeed.net/dyany.com/images/BabyBoSayingOLarge.png";
    var lastImage = "";
    var transferInProgress = false;
    $(function() {
    
        function runTransfer(imgID) {
            if(transferInProgress)
                return;
            transferInProgress  = true;
            var options = { to: "#picFrame", className: "ui-effects-transfer" };
    
            // run the transfer
            $("#"+imgID).effect("transfer", options, 1000, afterTransfer(imgID));
        };
    
        function afterTransfer(imgID) {
            setTimeout(function() {
                $("#picFrame").html('<img src="'+imgPath[imgID]+'">');
                $("#"+imgID).hide();
                if ((lastImage != "") && (lastImage != imgID)) {
                    $("#"+lastImage).show();
                }
                lastImage = imgID;
                transferInProgress = false;
            }, 1000);
        };
    
        $("#gen, #bo").mouseover(function(){runTransfer(this.id); return false; });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery's dialog I came across the following quirk (tested in FF3): User selects
Using Jquery Ajax i have an entry script index.php This script lets the user
Using jquery, I am trying to get a background image to fade into a
Using jQuery, I'm trying to replace all links to images (.jpg, .png, .tiff, .gif)
Using jquery (javascript) need to display facebook user name in html page using facebook
Using jQuery , how can I dynamically set the size attribute of a select
Using jQuery, how do you bind a click event to a table cell (below,
Using jQuery, how do you check if there is an option selected in a
Using jquery how do I focus the first element (edit field, text area, dropdown
Using jQuery, what's the best way to find the next form element 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.