jquery--ppDrag

ppDrag是一款基于jQuery的高性能拖放插件,模仿了jQuery UI的Draggable接口,专注于提升拖动操作的速度与性能。适用于多种浏览器,包括IE6/7、Firefox、Opera等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ppDrag is a Drag&Drop plugin for jQuery, which mimics the interface of jQuery UI's Draggable. Currently supported is a small subset of its options, but the implementation is different (ppDrag focuses on performance). Drag the two boxes below while watching your CPU usage to see the differences in their speed:

The speed difference is more visible with slower CPU's. If you have a fast processor which supports SpeedStep or a similar technology, you can try lowering its frequency. Also, due to JavaScript engine optimizations in the last generation browsers, the speed difference is less than with older browsers. For example, it is greater with Firefox 2 than with Firefox 3.

All major existing browsers are supported. This includes IE6/7, Firefox1/2/3, Opera, Konqueror, Safari, and probably others.

Download:
ppDrag is licensed under the LGPL license

Latest version (0.2): jquery.ppdrag.js
All downloads: http://code.google.com/p/ppdrag/downloads/list
Subversion: http://code.google.com/p/ppdrag/source/checkout

Usage:
Include jQuery:
<script src="jquery.js" type="text/javascript"></script>
Include ppDrag:
<script src="jquery.ppdrag.js" type="text/javascript"></script>
Activate ppDrag. Example:
$(document).ready(function() {
$("#element1").ppdrag();
});

Note: at the moment ppDrag doesn't support elements with static positioning. Please use either relative, absolute, or fixed positioning.
(optional) Specify options. Example:
$(document).ready(function() {
$("#element2").ppdrag({ zIndex: 1000 });
});

(optional) When no longer needed, you can deactivate ppDrag. Example:
$("#element2").ppdrag("destroy");

Supported options:
zIndex: [integer] z-index for the element while being dragged.
stop: [function(element)] Function that gets called when dragging stops.
History:
Version 0.1 (2008-04-03):
Initial release
Version 0.2 (2008-08-26):
Fixed cancelling IE's default event action didn't work;
Callbacks (only 'stop' for now) receive the element both as 'this' and as an argument, just like jQuery UI Draggable;
Updated jQuery UI version used in this demo to 1.5.2. It has received many optimizations and is now signifficantly faster than before (though still not as fast as ppDrag);
ToDo:
Seems like IE's default actions are not prevented properly while handling mouse events. Investigate and fix.
Add support for start and drag callbacks
Add explicit support for static-positioned elements (currently supported are absolute, relative, fixed)
Add support for more of jQuery UI Draggable's options
(possibly) Add Droppables
Contact:
Copyright (c) 2008, Peter Petrov
The author can be contacted at email: ppetrov(at)ppetrov.com

Bugs and feature requests should be reported at the issue tracker.
软件特色   支持批量文件(或目录)同时修改;   时间精度为毫秒级;   可进行固定时间、随机时间、平均时间、递增时间方式修改;   *模式下可使用规则定义灵活地生成随机时间;   可将不同的时间进行绑定,如可让创建时间与访问时间相同,不受设定影响;   可选择性地修改文件时间项,如只修改创建时间;   时间输入框支持键盘方向键调节,可以快速切换数据段并调数值;   可随时为本工具增加、删除系统菜单项,删除后不留垃圾,增加后能在文件/目录上右键快速打开本工具。 功能介绍   时间设定模式分为普通模式和*模式,普通模式又分为:固定时间、随机、平均、递增模式。   固定时间模式:按指定的时间进行修改   随机时间模式:设定时间段(即两个时间点),并在时间段内生成随机的时间   平均时间模式:设定时间段(即两个时间点),并根据文件的总数分摊时间值(需要注意文件的排序)   递增递减模式:设定起点一时间,再设定递增(或递减)的量和单位,按文件列表顺序逐步递增(或递减)时间   *模式:也称为*随机模式,可设定自定义规则,分别对不同数据段设定变动范围,能更加灵活地生成所需要的随机时间。   时间绑定:时间绑定是指将创建时间、 修改时间、 访问时间之间进行同步绑定,使绑定的时间相同,被绑定的时间不再受时间设定影响,直接引用绑定时间。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值