jQuery: How to write a function on click, hold and move?

Posted by Syom on Stack Overflow See other posts from Stack Overflow or by Syom
Published on 2010-05-06T17:52:07Z Indexed on 2010/05/06 17:58 UTC
Read the original article Hit count: 144

Filed under:

I started learning jQuery just yesterday, and I like it very much.

And now I decided to write a script where I can change the margin-left of an image when I click on it, hold the clicking and move the mouse.

Depending on mouse coordinates I must change the image's margin-left. Could you give me an idea how I can do it? Thanks.

© Stack Overflow or respective owner

Related posts about jQuery