jQuery Dynamic

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-13 12:12:42

软件介绍

Dragable, Dropable and Resizeable plugins in one pack.

$('#object').dragable({
clone: true,
opacity: 0.5,
target: '#otherobject',
over: function( obj, target ) {...},
out: function( obj, target ) {...},
drop: function ( obj , target) {...}
}).resizeable();

Parameters list:

* direction, resizeDirection - 'h' or 'v'
* edge - {x1, x2, y1, y2}
* start, move, end - dragable callback functions( o ) // start(o, dom event), move(o, dom event)
* over, moveover, out, drop - dropable target callback functions( o , target jquery object )
* resizeStart, resize, resizeEnd - resizeable callback functions( o )
* handlerPosition - custom function(o, handler jquery object) for setting the resize handler position
* moveHandler - move handler object / whatever that might be given to $()
* moveHandlerOutside - bool (false by default) - tells plugin to look moveHandler (jquery selector) outside of elem object (useful with mass dragging)
* / if not set, plugin will look inside of elem - $(moveHandler, o.elem)
* target - collection of target objects for dropping / whatever that might be given to $()
* renewTarget - target collection should be renewed before moving
* tolerance - 'intersect', 'leftcorn', 'pointer' - the way two object should intersect / todo: more modes
* clone - bool or callback(o, new jquery object) - do not drag the actual object, use clone
* cloneRemove - callback(o, cloned jquery object) - called before object.remove();
* / if returns false, object.remove() will not be called and also the position of the original element will not be updated
* / useful for drag'n'drop creation of objects
* moveReplacer - jquery object / can be used instead of clone / if both set, plugin will choose replacer
* / clone and cloneRemove callbacks, if set, will be called too with the same logic
* / moveReplacer will not be removed from dom anyway
* opacity, initialOpacity - (string) double - opacity of dragged object ( default element, cloned element, or replacer element - no matter)
* zIndex - if set, it will be used while dragging, and initial z-index from style will be restored on mouseup event
* proportion, min, max - {w, h}
* resizeHandlerClass - initial class for resize handler
* parent - jquery object of parent element / if edge is not set, it will be taken from parent element

本文地址:https://codercto.com/soft/d/23285.html

jQuery基础教程 (第4版)

jQuery基础教程 (第4版)

[美] Jonathan Chaffer、[美] Karl Swedberg / 李松峰 / 人民邮电出版社 / 2013-10 / 59.00

本书由jQuery API网站维护者亲自撰写,第一版自2008上市以来,一版再版,累计重印14次,是国内首屈一指的jQuery经典著作! 作为最新升级版,本书涵盖jQuery 1.10.x和jQuery 2.0.x。本书前6章以通俗易懂的方式讲解了jQuery的核心组件,包括jQuery的选择符、事件、动画、DOM操作、Ajax支持等。第7章和第8章介绍了jQuery UI、jQuery M......一起来看看 《jQuery基础教程 (第4版)》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

随机密码生成器
随机密码生成器

多种字符组合密码