I’d like to be able to click hold my mouse inside a div and move it’s background. Searched a lot on google and didn’t found what I wanted.
Here’s the target (the map displayed is the object to drag) : http://pontografico.net/pvt/gamemap/
Any tips?
Cheers!
Alright, got this to work; I think I got all the kinks out:
Final jQuery with Bounding Limits
http://jsfiddle.net/userdude/q6r8f/4/
Original Answer
HTML
CSS
jQuery
http://jsfiddle.net/userdude/q6r8f/2/