Div Drag/Resize Demo Div 0ContentDiv 1ContentDiv 2ContentThis is a JavaScript library that lets you easily implement user-friendlyand customisable dragging and resizing of your page elements. You might want touse it as part of a web application -- it contains all you need for alightweight "windowing" system. Features include:
- Can both drag and resize page elements.
- Works with absolute and relatively positioned elements in your page.
- Customisable appearance as it makes extensive use of CSS classes for layout of its resisze handles.
- Unobtrusive, Object-Orientated JavaScript means it's easy to add to your pages.
- Bounding boxes and minimum sizes can be set and automatically enforced.
- Cross-browser compatible so it works for everyone.
- Small code size so your visitors don't have to wait!
Script License Agreement
DragResize © 2005-2006 Angus Turnbull, TwinHelix Designshttp://www.twinhelix.com
Licensed under the CC-GNU LGPL, version 2.1 or later.
This is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I hope you find it handy!It's free for you to use and distribute, as long as you retain the license andcopyright as per the LGPL.If you like this and/or my other scripts, you're more than welcome tomake a donation.See the source for more details and instructions.
Note: DragResize was conceived initially as part of my work on theFotonotes DHTML Client.
Good luck - Angus.
参考出处:http://www.99n9.com/note/view/id/1818