Drag and drop with Javascript
来源:互联网 发布:欧洲出发旅游软件 编辑:程序博客网 时间:2024/05/09 02:28
Walter Zorn’s Drag & Drop is a DHTML API which makes it easy to add extensive drag and drop functionality to any element on a page. The API supports dragging and resizing and also provides Javascript methods for programmatically moving and resizing elements. It works on an impressive range of browsers right the way back to Netscape 4 and has options that include limiting the area within which an item can be manipulated and restricting resizing to maintain the initial ratio of width to height of an element.
I’ve previously used DOM-Drag, a similar library by Aaron Boodman, to create user interfaces that allow users to set the order of items by dragging them relative to each other. Aaron recently updated DOM-Drag’s documentation to include even more examples.
I prefer DOM-Drag’s API over Drag & Drop’s as it uses smart object orientation to provide hooks for performing additional actions when drag related events occur. Drag & Drop’s API is less flexible but the library provides resizing support out of the box and has compatibility with older browsers. I recommend trying out both before picking one as a starting point for your own scripts.
Walter’s site has some other interesting CSS experiments, including an impressive graph generator and a library for dynamically rendering vector graphics.
- Drag and drop with Javascript
- Drag And Drop In Javascript
- Drag and Drop
- 学习drag and drop
- 关于drag and drop
- html5 Drag and drop
- Ajax Drag and Drop
- QT5 drag and drop
- HTML5 Drag and Drop
- drag and drop学习
- android - Drag and Drop
- html5 Drag and Drop
- Qt Drag and Drop
- drag and drop(拖拽)
- Drag And Drop 进阶
- drag and drop 事件
- How To Drag and Drop Sprites with Cocos2D
- JavaScript: DHTML API,Drag & Drop for Images and Layers
- 工程师和程序员的故事
- javacc-3.2
- 六十六条经典禅语
- 智能市场如沐春风 手机操作系统演绎三雄争霸
- 中国社会历来的通病,就是希望每个人都按照一个模式发展
- Drag and drop with Javascript
- ajax_javascript_librabries
- 侃侃7zip
- Weka项目中的ARFF文件结构解析
- Web Services and Workflow
- 下午看见只白色的小猫
- 系统管理员登录在windows系统中以另一个用户ibm启动posgresql数据库的办法
- Oracle Database 10g Express Edition正式版20060224发布了至此,3个主流数据库厂商都已经推出免费 Express版本
- 关于ostream_iterator的实例程序