Facebook封面图片重新定位代码[关闭]

I'd like to know how is it possible to develop a "drag and reposition cover" application like Facebook? I already know I gotta use AJAX, so the image will be uploaded without refreshing its page. Now I gotta figure out what kind of JavaScript code will do the job for image repositioning.

I appreciate any help!

When you have image, you can try using JQ Image Drag plugin to do repositioning like facebook.

You need to specify few parameters like the sample code below

$('.wrap').imagedrag({
          input: "#output",
          position: "middle",
          attribute: "html"
        });