//insertCity(984159);
var commentcount = 0;
$('.comment-item time').each(function() {
var d = new Date(eval($(this).attr('rel')));
d.setHours(d.getHours() - 7);
var n = new Date();
if (d > n) {
$(this).parents('.comment-item').hide();
commentcount--;
}
});
if (commentcount != 0) {
$('#commentcount984159').val(commentcount);
if (commentcount > 0) {
$('#ccc').html('(' + commentcount + ' nhận xét)');
} else {
$('#ccc').hide();
}
}
Bình luận