Hi,
ergänzend:
layer['center'].onmousedown = function(e){ Dragging = true; X = e.pageX; Y = e.pageY; T = layer['center'].style.top; L = layer['center'].style.left; }
Durch die Zuweisung an T und L holst du hier nur einmalig die aktuellen Werte ab.
Statt dann in DragLayer, wo diese Werte weiterhin unverändert bleiben, jedes mal parseInt anzuwenden, solltest du das lieber gleich in obiger Funktion machen.
MfG ChrisB
--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]