Chèn vào recent_topic:
- Code:
<div class="module main">
<div style="border: 1px solid #ccc;margin-top:5px;padding:0px 9px;background:#FFF url(http://i74.servimg.com/u/f74/16/18/15/10/176.png)repeat-x top left">
<div style="height:12px;padding:3px;margin-bottom:16px;"><span class="tin_tuc" style="color:#464a4f;border:1px solid #d4d4d4;padding:14px 16px 6px 16px;margin-top:-9px;background:#FFF;border-bottom:0px">Bài Viết Mới</span></div>
<div id="tab1" class="x123" style="display: block;height:260px;margin-bottom:12px;">
<div style="overflow: hidden !important;height:383px;background: url(http://i337.photobucket.com/albums/n395/kalenv1/4r/ads/list.gif) no-repeat 2px 0px transparent;padding-left:25px;"> <div style="background: transparent url(http://i337.photobucket.com/albums/n395/kalenv1/4r/ads/listbg.gif) repeat;"> <!-- BEGIN classical_row -->
<table cellpadding="0" cellspacing="0" border="0" width="100%"> <tbody class="hienlast" style="display:block">
<script type="text/javascript"> function gioihanl(a){
if(a.length > 60){
return a.substring(0,60)+'...';}else{return a;}
};
function shpost(a){
window.open(a,'','width=200,height=100,top=200,left=400,menubar=no,titlebar=no,location=no');
};
$(function () {
$('.dulieu').load('/search?search_keywords=&search_author=*_* table.table .statused tr:lt(20)', function () {
var i;
for (i = 0; i < 20; i++) {
$('.box:eq(' + i + ')').html($('.dulieu tr:eq(' + i + ') .tc2').html());
$('.reply:eq(' + i + ')').html($('.dulieu tr:eq(' + i + ') .tc3:eq(0)').html());
$('.view:eq(' + i + ')').html($('.dulieu tr:eq(' + i + ') .tc3:eq(1)').html());
}
$(".hienlast").show();
});
});
</script>
<!-- BEGIN recent_topic_row -->
<tr style="height: 20px;"> <td style="padding-left:3px" width="100%" nowrap="nowrap">
<span class="smallfont"> <a title="{classical_row.recent_topic_row.L_TITLE}" href="{classical_row.recent_topic_row.U_TITLE}" style="font: bold 12px Verdana;"> <script>document.write(gioihanl("{classical_row.recent_topic_row.L_TITLE}"));</script> </a> </span>
</td> <td style="text-align:right" nowrap="nowrap" class="box" width="20%">
</td> </tr> <!-- END recent_topic_row -->
</tbody> </table> </div></div></div></div> <div style="display:none" class="dulieu"></div>
<!-- END classical_row -->
<style>.x123:hover {overflow: auto;}.x123{overflow:hidden}.x123 {display: none;}
a.tin_tuc, .tin_tuc {
font: bold 11px Arial;
display: inline-block;
padding: 0px 14px;
border-right: 1px solid #e1e1e8;
margin-top: 2px;
}
</style>