[Bài viết không bị Ẩn]
- Code:
<script>
$(function () {
$.ajax({
url: "/feed/?f={FORUM_ID}",
success: function (a) {
$(".post-entry:first").after('<div style="width:400px;background:#eee;padding:1px;margin-top:221px;"><div id="cungchuyenmuc" style="padding:10px 20px;background:#fff;border:1px solid #ddd;"><div class="title">B\u00e0i g\u1eedi c\u00f9ng chuy\u00ean m\u1ee5c</div></div>');
12 < $(a).find("title").length ? so = 7 : so = $(a).find("title").length;
for (i = 2; i < so; i++) $('<a href="' + $(a).find("link:eq(" + i + ")").text() + '" style="overflow: hidden; position: absolute; text-overflow: ellipsis; white-space: nowrap; width: 34%;" >' + $(a).find("title:eq(" + i + ")").text() + "</a><br/>").appendTo("#cungchuyenmuc")
}
})
});
</script>
Nguồn : [You must be registered and logged in to see this link.]