728x90
반응형
function getRecentComment() {
$.ajax({
type: 'POST',
url: './realtime_comment_ajax.php',
data: 'lid=715',
success: function(html) {
document.getElementById("comment_wrap").innerHTML = html;
}
});
}
$(document).ready(function() {
getRecentComment();
});
document.onreadystatechange = function() {
if (document.readyState === "complete") {
if ($('#comment_wrap dd').length >= 5) {
var passList = function() {
setTimeout(function() {
$(' #comment_wrap dd:first').animate({
marginTop: '-36px'
}, 400, function() {
$(this).detach().appendTo('#comment_wrap').removeAttr('style');
});
passList();
}, 2500);
};
passList();
};
};
};
728x90
반응형