Moving a Div Layer With JavaScript
Formula and example included.
Pseudo formula:
New style.left = MovingMouseX-(PushedMouseX-PreviousStyleLeft)
New style.top = MovingMouseY-(PushedMouseY-PreviousStyleTop)
With this formula you will move the layer relative to where you clicked on it.
Click on and hold, to move this layer.