Friday, 09 January 2009
Home jQuery Photos | Other plugins magicpuff(jquery plugin)
magicpuff(jquery plugin) PDF Print E-mail
(2 votes, average: 4.00 out of 5)
Written by LXR   
Tuesday, 09 October 2007 22:09
预览:

主要代码:
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);

源文件下载
Comments (0)add comment

Write comment

busy

Newer news items:
Older news items: