<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/jquery.easing.1.3.js" type="text/javascript"></script>
<script type="text/javascript" >
$(function(){
$('.box').animate({
height : 20
}, 'slow')
.queue(function () {
$('#title').html("We're in the animation, baby!");
$(this).dequeue();
}).animate({
height: 150
});
})
</script>
<style type="text/css">
div.demo {
background:#CCCCCC none repeat scroll 0 0;
border:3px solid #666666;
margin:5px;
padding:5px;
position:relative;
width:500px;
height:500px;
overflow:auto;
}
p { margin:10px;padding:5px;border:2px solid #666;width:1000px;height:1000px; }
</style>
</head>
<body>
<div class="box">我要展开了</div>
<div id="title">呵呵</div>
</body>
</html>
loading