| magicpuff(jquery plugin) |
| Wednesday, 10 October 2007 | |
|
预览: 主要代码: function magicpuff() {
$("img").mousedown(function() {
pos = findPos(this)
left = pos[0];
top = pos[1];
puffer = this.cloneNode(true);
puffer.style.left = left + "px";
puffer.style.top = top + "px";
puffer.style.position = "absolute";
$(document.body).append(puffer);
$(puffer).Puff(1000, function() { $(puffer).remove() });
return false;
})
}
$(document).ready(magicpuff);
源文件下载
Set as favorite
Bookmark
Email This
Hits: 1444 Comments (0)
![]() Write comment
|
| < Prev | Next > |
|---|