[Hỏi đáp] Hiển thị bài viết + hình ảnh của chuyên mục ra ngoài

  Bài viết hay nhất1
code này mình lấy ở 1 bài viết của devs
Code:
<span class="show_topich7"></span>
<script>$(function () {$.ajax({url: "/feed/?f=1",success: function (ta) {for(var i=2;i<7;i++){var DL=$(ta).find("link:eq("+i+")").text();$('<a href="'+DL+'" class="ava_new"></a>').appendTo('.show_topich7:eq('+(i-2)+')');$('<img src="'+$(".show_topich7:eq("+(i-2)+") a").load(DL+".postbody .post-entry img:eq(0)")+'"/>').appendTo('.show_topich7:eq('+(i-2)+') a');$('<br /><strong><a href="'+DL+'">'+$(ta).find("title:eq("+i+")").text()+'</a></strong>').appendTo('.show_topich7:eq('+(i-2)+')');}}})})</script></style><style>}.show_topich7 {display: inline-block;height: 190px;}</style><br><style>}a.ava_new,span.ava_new img {width: 239px;height: 150px;display: inline-block;border: 1px solid #b0b0b0;overflow: hidden;margin-left: 0px;}.show_topic4 {display: inline-block;height: 190px;}a.ava_new img,span.ava_new img {width: 100px;height: 100px;}
</style>


cho mình hỏi có cách nào cho nó hiện nhiều bài viết ra dc ko mình thấy hiện có 1 bài viết thôi à ??
You cannot reply to topics in this forum