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:
- User hovers their mouse on a thumbnail.
- Thumbnail transfers to a picture frame in center of page.
- Thumbnail disappears.
- User hovers on a second thumbnail.
- This thumbnail replaces other picture in the center frame, AND the first thumbnail reappears.
- User hovers on first thumbnail again.
- 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.
It is happening because you are using
onemethod to bind the event. I have fixed it take a look at this fiddle hereCode