星期五, 三月 24, 2006

drag and drop






pause


play





onmousedown="dragging.apply()"
onmouseup="dragging.remove(); stop()">




if (this.x>wish.x) {
this.setAttribute("x", wish.x+10);
this.setAttribute("y", wish.y+20);
player.setAttribute("play", false);
} else {
this.setAttribute("x", cart.x+10);
this.setAttribute("y", cart.y+20);
player.setAttribute("play", true);
}











pause


play










if (this.x>wish.x) {
this.setAttribute("x", wish.x+10);
this.setAttribute("y", wish.y+20);
player.setAttribute("play", false);
} else {
this.setAttribute("x", cart.x+10);
this.setAttribute("y", cart.y+20);
player.setAttribute("play", true);
}





Cookie

0 Comments:

发表评论

<< Home