<style type="text/css">
.css_test {
border : 5px solid silver;
padding : 5px;
margin-top : 10px;
padding-top : 50px;
width : 100%;
}
.css_test td {
text-align : center;
height : 150px;
}
.css_test .new {
position : relative;
top : -200px;
z-index : 10;
}
</style>
어떤 사람이 줄을 서있는데 ...<br><br>
<button type="button"
onclick="j_test('//superkts.com/img/css/huk.gif')">사람이 끼어들었어요</button>
<button type="button"
onclick="j_test('//superkts.com/img/css/dog061.gif')">개가 끼어들었어요</button>
<button type="button"
onclick="j_test('//superkts.com/img/css/bird20.gif')">새가 끼어들었어요</button>
<button type="button"
onclick="j_test('//superkts.com/img/css/bird34.gif')">닭이 끼어들었어요</button>
<br>
<table class="css_test" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom"><img src="//superkts.com/img/css/huk.gif" /></td>
</tr>
</table>
<script type="text/javascript">
function j_test(src){
$('.css_test td')
.prepend('<img class="new" src="' + src + '" />');
$('.css_test td img:first').animate( { top:0 }, 1000, 'easeOutBounce');
}
</script>