//note: code exists before this line
function movePieceTo($piece,newTop,newLeft) {
//set the css 'top' and 'left'
//attributes of the passed piece
//to the arguments newTop and newLeft
$piece.css('top',newTop);
$piece.css('left',newLeft);
}
//note: code exists after this line
No comments:
Post a Comment