Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 41 lines (29 sloc) 0.763 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

<style>

#wrapper {
border: 1px solid #555;
background: #DDD;
position: relative;
height: 300px;
width: 300px;
}

#wrapper div {
cursor: pointer;
position: absolute;
}

</style>

<p>
You should be able to drag all four elements around, even when they are positioned with bottom or right.
</p>

<div id="wrapper">

<div id="topLeft" style="top:0; left:0;">topLeft</div>
<div id="topRight" style="top:20px; right:20px;">topRight</div>
<div id="bottomLeft" style="bottom:0; left:0;">bottomLeft</div>
<div id="bottomRight" style="bottom:0; right:0;">bottomRight</div>

</div>

<script src="/depender/build?require=More/Drag.Move"></script>

<script>

new Drag('topLeft');
new Drag('topRight');
new Drag('bottomLeft');
new Drag('bottomRight');

</script>
Something went wrong with that request. Please try again.