Andrew Poulos wrote:
How do I make an object that's within a DIV, whose overflow style is set
to "auto", draggable? I've had a number of goes but the ways I've tried
depend on absolutely positioning the object which means it gets dragged
"out" of the DIV.
It doesn't matter how far a user drags the object.
The positioning scheme of a dragable object does not really matter as long
as you calculate its new position as its old position plus the difference
between the new and old cursor coordinates, while keeping the positioning
scheme (except setting "static" to "relative"). It appears that this is
also the most efficient and most compatible approach.
HTH
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>