If you want this to work in both IE4 and 5 you should use the js file otherwise I recommend the more powerful behavior solution.
First you need to include the file genmove.js like this:
<script type="text/javascript" src="genmove.js"></script>
Then you need to set th position
style to either absolute
or relative
.
If you don't want to use the move cursor you should set the cursor
style to something else
(for example auto
for the standard value).
This is a div that's moved with a handle.
The title has the class="handle"
and the custom attribute handlefor
that
has the value of the id that it should move
It has the position
style set to relative
This is a div that you can grab anywhere
This div has the class="moveme"
It has the position
style set to absolute
and the top
and left
set to 600
and 300
respectively
Drag and Drop
Setting up the page
As a behavior