<html>
<head>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery
/jquery-1.4.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".btn1").click(function(){
$("#red").animate({left:1237},2000);
$("#red").animate({top:603},2000);
});
$(".btn2").click(function(){
$("#red").animate({top:""},2000);
$("#red").animate({left:""},2000);
setTimeout()
});
});
</script>
</head>
<body>
<div id="red" style="height:100px;width:200px;background-color:red;position:relative;left:0;top:0"></div>
<button class="btn1">Animate</button>
<button class="btn2">Reset</button>
</body>
</html>