<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="jquery.js">
</script>
<script>
$(document).ready(function(){
$("#move2").click(function(){
$("#qiu").animate({
left:'400px'
},'1000','');
$("#xian").animate({
height:'470px'
},'1000',function(){
$("#gou").attr("src","img/u129.png");
});
});
});
</script>
</head>
<body >
<span id="move2">开始动画</span><br>
<div >开始动画</div><br>
<div>开始动画</div><br>
<div id="qiu" style="height:40px;width:40px;position:absolute;">
<img id="xian" src="img/xian.png" height="40" width="3"/>
<img id="gou" src="img/u184.png" height="40" width="40"/>
</div>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="jquery.js">
</script>
<script>
$(document).ready(function(){
$("#move2").click(function(){
$("#qiu").animate({
left:'400px'
},'1000','');
$("#xian").animate({
height:'470px'
},'1000',function(){
$("#gou").attr("src","img/u129.png");
});
});
});
</script>
</head>
<body >
<span id="move2">开始动画</span><br>
<div >开始动画</div><br>
<div>开始动画</div><br>
<div id="qiu" style="height:40px;width:40px;position:absolute;">
<img id="xian" src="img/xian.png" height="40" width="3"/>
<img id="gou" src="img/u184.png" height="40" width="40"/>
</div>
</body>
</html>