Thu Jul 19, 2012 8:28 am
- Code:
<script type="text/javascript" src="/17035.js"></script>
<script type="text/javascript">//<![CDATA[
var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}', multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}', _atr = '{JS_DIR}addthis/', _ati = '{PATH_IMG_FA}addthis/'{ADDTHIS_LANG}, addthis_localize = { share_caption: "{L_SHARE_CAPTION}", email: "{L_EMAIL}", email_caption: "{L_EMAIL_CAPTION}", favorites: "{L_SHARE_BOOKMARKS}", print: "{L_PRINT}", more: "{L_MORE}" };
$(function () {
_atc.cwait = 0;
$('.addthis_button').mouseup(function () {
if ($('#at15s').css('display') == 'block') {
addthis_close();
addthis_close();
}
});
$(".thongtin:contains('Status:'),.thongtin:contains('dulieuava: ')").remove();
$(".coin").each(function () {
$(this).html($(this).find("div:contains('Status:') div").html());
});
});
//]]>
</script>
<!-- BEGIN switch_user_logged_in -->
<div id="pun-visit" class="clearfix">
<ul>
<!-- BEGIN switch_plus_menu -->
<li>
<script type="text/javascript">//<![CDATA[
var url_favourite = '{switch_user_logged_in.U_FAVOURITE_JS_PLUS_MENU}';
var url_newposts = '{U_NEWPOSTS_JS_PLUS_MENU}';
var url_egosearch = '{U_EGOSEARCH_JS_PLUS_MENU}';
var url_unanswered = '{U_UNANSWERED_JS_PLUS_MENU}';
var url_watchsearch = '{U_WATCHSEARCH_JS_PLUS_MENU}';
var url_tellfriend = '{U_TELLFRIEND_JS_PLUS_MENU}';
insert_plus_menu_new('f{FORUM_ID}&t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
//]]>
</script>
</li>
<!-- END switch_plus_menu -->
<li><a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&pub=forumotion">{L_SHARE}</a></li>
<li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
<li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
<!-- BEGIN watchtopic -->
<li>{S_WATCH_TOPIC}</li>
<!-- END watchtopic -->
</ul>
<p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
</div>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<div id="pun-visit">
<p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
</div>
<!-- END switch_user_logged_out -->
<div class="pun-crumbs noprint">
<p class="crumbs">
<a href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC} »
<strong><a href="{TOPIC_URL}">{TOPIC_TITLE}</a></strong>
<!-- BEGIN switch_twitter_btn -->
<span id="twitter_btn" style="margin-left: 6px; ">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</span>
<!-- END switch_twitter_btn -->
<!-- BEGIN switch_fb_likebtn -->
<span id="fb_likebtn" style="margin-left: 6px; ">
<iframe src="http://www.facebook.com/plugins/like.php?href={FORUM_URL}{TOPIC_URL}&layout=button_count&show_faces=false&width=450&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:auto; height:21px;" allowTransparency="true"></iframe>
</span>
<!-- END switch_fb_likebtn -->
</p>
</div>
<div class="main paged">
<div class="paged-head clearfix">
<!-- BEGIN topicpagination -->
<p class="paging">{PAGINATION}</p>
<!-- END topicpagination -->
<p class="posting">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" class="{POST_IMG_CLASS}" alt="{L_POST_NEW_TOPIC}" /></a>
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
<!-- END switch_user_authreply -->
</p>
</div>{POLL_DISPLAY}
<div class="main-head clearfix">
<p class="h2">
<a href="#bottom">{L_GOTO_DOWN}</a>{L_MESSAGE} [{PAGE_NUMBER}]</p>
</div>
<div class="main-content topic">
<!-- BEGIN postrow -->
<!-- BEGIN displayed -->
<table class="tborder" id="post{postrow.displayed.U_POST_ID}" cellpadding="6" cellspacing="3" border="0"
width="100%" align="center">
<tbody>
<tr><a name="{postrow.displayed.U_POST_ID}"></a>
<td class="thead">
<div class="normal" style="float:right">
<strong style="float: right; background: #2ebcff;padding: 2px;color: #fff;min-width:15px;height: 15px;font-size: 12px;text-align: center;-webkit-border-radius: 99px; -moz-border-radius: 99px; border-radius: 99px;position: relative;top: 1px;">{postrow.displayed.COUNT_POSTS}</strong></div>
<div class="normal">
{postrow.displayed.POST_DATE_NEW}
</div>
</td>
</tr>
<tr>
<td class="alt2" style="padding:0px">
<table cellpadding="0" cellspacing="6" border="0" width="100%">
<tbody>
<tr>
<div class="blast1"></div>
<div class="blast">
<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="1" scrolldelay="20" direction="left" truespeed="truespeed" style="width: 750px;margin-left: -8px;">
<span class="coin">
<!-- BEGIN profile_field --><div style="display:none">{postrow.displayed.profile_field.LABEL}<div>{postrow.displayed.profile_field.CONTENT}</div>:{postrow.displayed.profile_field.SEPARATOR}</div><!-- END profile_field -->
</span>
</marquee></div>
<td>
<span class="avatar97">{postrow.displayed.POSTER_AVATAR}</span>
</td>
<td nowrap="nowrap">
<div id="postmenu_{postrow.displayed.U_POST_ID}">
{postrow.displayed.POSTER_NAME}
{postrow.displayed.ONLINE_IMG}
</div>
<div class="rank">{postrow.displayed.RANK_IMAGE}</div>
</td>
<td width="300px" align="center">
<div class="user-pet" style="margin-left: 15px;margin-top: -30px;">
<div class="huanchuong">
<script>shop(<!-- BEGIN profile_field -->'{postrow.displayed.profile_field.CONTENT}',<!-- END profile_field -->1);</script>
</div>
</div>
<td valign="middle" nowrap="nowrap" width="200px">
<span class="prone d{postrow.displayed.U_POST_ID}"><!-- BEGIN profile_field --><div class="thongtin" align="left">{postrow.displayed.profile_field.LABEL}<span class="dulieu">{postrow.displayed.profile_field.CONTENT}</span>{postrow.displayed.profile_field.SEPARATOR}</div><!-- END profile_field --></span>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="alt1" id="td_post_{postrow.displayed.U_POST_ID}">
<div class="hihi" style="width:885px;">
<span class="smallfont" style="font-style: italic;">
<img src="http://i48.servimg.com/u/f48/13/58/60/43/subfor10.png" alt="Bài viết mới" border="0" style="margin-top: -5px;" data-original-title="Bài viết mới"> Tiêu đề :
{postrow.displayed.ICON} <a href="{postrow.displayed.POST_URL}">{postrow.displayed.POST_SUBJECT}</a>
</span>
</div>
<hr>
<br>
<div class="post-entry">
<div class="noidungbai">
<table cellSpacing="0" cellPadding="0" border="0" style="width:auto">
<tr>
<td style="padding: 0px"><img src="http://i52.servimg.com/u/f52/12/82/29/24/admin_10.gif"></td>
<td style="padding: 0px" background="http://i52.servimg.com/u/f52/12/82/29/24/admin_11.gif"></td>
<td style="padding: 0px"><img src="http://i52.servimg.com/u/f52/12/82/29/24/admin_12.gif"></td>
</tr>
<tr>
<td valign="top" style="padding: 0px" background="http://i52.servimg.com/u/f52/12/82/29/24/admin_13.gif">
<img src="http://i52.servimg.com/u/f52/12/82/29/24/admin_14.gif"></td>
<td style="padding: 0px; background-color: #ffffff" bgColor="#ffffff">
{postrow.displayed.MESSAGE}
</td>
<td style="padding: 0px" background="http://i52.servimg.com/u/f52/12/82/29/24/admin_15.gif"></td>
</tr>
<tr>
<td style="padding: 0px"><img src="http://i52.servimg.com/u/f52/12/82/29/24/admin_16.gif"></td>
<td style="padding: 0px" background="http://i52.servimg.com/u/f52/12/82/29/24/admin_17.gif"></td>
<td style="padding: 0px"><img src="http://i52.servimg.com/u/f52/12/82/29/24/admin_18.gif"></td>
</tr>
</table>
<div> </div>
<div class="voteTopic">
<!-- BEGIN switch_vote_active -->
<div class="vote gensmall">
<!-- BEGIN switch_vote -->
<div class="vote-button">
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a>
</div>
<!-- END switch_vote -->
<!-- BEGIN switch_bar -->
<div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
<!-- BEGIN switch_vote_plus -->
<div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;">
</div>
<!-- END switch_vote_plus -->
<!-- BEGIN switch_vote_minus -->
<div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;">
</div>
<!-- END switch_vote_minus -->
</div>
<!-- END switch_bar -->
<!-- BEGIN switch_no_bar -->
<div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">
----
</div>
<!-- END switch_no_bar -->
<!-- BEGIN switch_vote -->
<div class="vote-button">
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a>
</div>
<!-- END switch_vote -->
</div>
<!-- END switch_vote_active -->
</div>
<span class="loadFMvi">
<img alt="Loading" src="http://farm04.go.vn/photo/data/20111012/10798851/946D73AB7E9F949624C2BF756D1ED794.gif"
/>
</span>
</div>
</div>
<hr>
</td>
</tr>
</tbody>
</table>
<!-- BEGIN switch_signature -->
<div class="clear"></div><div class="signature_div">
<span class="smallfont"><fieldset><legend><span style=width:100;height:30;text-align:center;color:black;filter:glow(color=##56CDE0)><img src="http://i913.photobucket.com/albums/ac332/battuvuong/baivong/chuky10.gif"></span></a> </strong></span></legend> <table cellspacing="1" cellpadding="0" border="0" onclick="if(this.getElementsByTagName('td')[1].style.display == 'none'){ this.getElementsByTagName('td')[1].style.display = '';this.getElementsByTagName('td')[2].style.display = 'none'; }else{ this.getElementsByTagName('td')[1].style.display = 'none';this.getElementsByTagName('td')[2].style.display = '';}" style="cursor: pointer;"><tr><td><span class="genmed"></td></tr><tr><td class="smallfont" style="display: '';"><b>Ấn Vào Để Xem chữ ký của </b><strong>{postrow.displayed.POSTER_NAME}</strong></td><td style="display: none;"> <span class="postdetails poster-profile"><span style="white-space:nowrap;"><span style="color:#0593FF;"></span></span></span>
<div class="signature_div"
{postrow.displayed.SIGNATURE}</div></div>
</span> </td></tr></table></fieldset></span>
<!-- END switch_signature -->
<hr>
<div class="clear"></div><div class="signature_div">
<span class="smallfont"><fieldset><legend><span style=width:100;height:30;text-align:center;color:black;filter:glow(color=##56CDE0)></span></a> </strong></span></legend> <table cellspacing="1" cellpadding="0" border="0" onclick="if(this.getElementsByTagName('td')[1].style.display == 'none'){ this.getElementsByTagName('td')[1].style.display = '';this.getElementsByTagName('td')[2].style.display = 'none'; }else{ this.getElementsByTagName('td')[1].style.display = 'none';this.getElementsByTagName('td')[2].style.display = '';}" style="cursor: pointer;"><tr><td><span class="genmed"></td></tr><tr><td class="smallfont" style="display: '';"><b>Ấn Vào Để Xem Tài Sản của </b><strong>{postrow.displayed.POSTER_NAME}</strong></td><td style="display: none;"> <span class="postdetails poster-profile"><span style="white-space:nowrap;"><span style="color:#0593FF;"></span></span></span>
<div class="POSTER_RPG_div"
{postrow.displayed.POSTER_RPG}</div></div>
</span> </td></tr></table></fieldset></span>
<hr>
<span class="options-button">{postrow.displayed.MULTIQUOTE_IMG} {postrow.displayed.QUOTE_IMG}
{postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG}
{postrow.displayed.REPORT_IMG}</span>
<div class="info"><center><b>(¯`'•.¸(¯`'•.¸Chú Ý : Phải <a href="http://www.teenlythuongkiet.net/register" target="_blank"><font color=red> Đăng Ký </font></a> Và Sau Đó <a href="http://www.teenlythuongkiet.net/login" target="_blank"><font color=red> Đăng Nhập</font></a> Mới Có Thể Xem Được Hình Ảnh Ở Bài Viết¸.•'´¯)¸.•'´¯)</b></center> </div>
<br/>
<!-- BEGIN first_post_br -->
</div>
<hr id="first-post-br" />
<div class="main-content topic">
<!-- END first_post_br -->
<!-- END displayed -->
<!-- BEGIN hidden -->
<p class="p-hidden">{postrow.hidden.MESSAGE}</p>
<!-- END hidden -->
<!-- END postrow -->
</div>
<div class="main-foot clearfix modBottom">
<p class="h2">
<a href="#top">{L_BACK_TO_TOP}</a>{L_MESSAGE} [{PAGE_NUMBER}]</p>
<p class="options">
<input type="hidden" name="t" value="{TOPIC_ID}" />
<!-- <input type="hidden" name="sid" value="{S_SID}" />-->
<input type="hidden" name="{SECURE_ID_NAME}" value="{SECURE_ID_VALUE}"
/>
<!-- BEGIN viewtopic_bottom -->{S_TOPIC_ADMIN}
<!-- END viewtopic_bottom -->
</p>
</div>
<a name="bottomtitle"></a>
<div class="paged-foot clearfix">
<!-- BEGIN topicpagination -->
<p class="paging">{PAGINATION}</p>
<!-- END topicpagination -->
<p class="posting">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" class="{POST_IMG_CLASS}" alt="{L_POST_NEW_TOPIC}" /></a>
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
<!-- END switch_user_authreply -->
</p>
</div>
</div>
<p style="padding: 20px 0; text-align: center">«
<a href="{U_VIEW_OLDER_TOPIC}"> Xem bài trước </a>|
<a href="{U_VIEW_NEWER_TOPIC}"> Xem bài kế tiếp </a>»</p>
<div class="pun-crumbs">
<p class="crumbs">
<a href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC} »
<strong>
<a href="{TOPIC_URL}">{TOPIC_TITLE}</a>
</strong>
</p>
</div>
<div class="fmviToggle">
<div class="main">
<div class="main-head clearfix">
<p class="h2">Bài viết liên quan với
<a href="{TOPIC_URL}">{TOPIC_TITLE}</a>
</p>
</div>
<ol style="list-style-type:decimal-leading-zero; padding: 10px 40px" id="bailienquan"
class=" main-content frm listVer4"></ol>
</div>
</div>
<script type="text/javascript">
$("a[href*='&mode=quote']").click(function () {
var tQuote = location.pathname.slice(0, location.pathname.indexOf("-"));
var ltQuote = $(this).attr("href").slice(8, $(this).attr("href").indexOf("&"));
my_setcookie("linkquoteFMvi", tQuote + "-quote?showpost=" + ltQuote, false);
});
var bailienquan = '.tdtopics:not(".tdtopics:contains(\"{TOPIC_TITLE}\"), .tdtopics:contains(\"Announcement\"), .tdtopics:contains(\"Sticky\"), .tdtopics:contains(\"Global announcement\"), .tdtopics:contains(\"»\")") .topic-title:lt(10)';
$('.crumbs:first a.nav[href^="/f"]:last').clone().appendTo('#chuyenmucnay');
$.ajax({
url: '/search?search_keywords=&search_author=*&search_where=f{FORUM_ID}',
success: function (data) {
if ($(data).find(bailienquan).length == 0) {
$('#cungchuyenmuc').prev().remove();
$('#cungchuyenmuc').remove();
} else {
$(data).find(bailienquan).find(".topictitle, .tooltipFMvi").appendTo('#cungchuyenmuc');
$('#cungchuyenmuc a.topictitle').wrap("<li></li>");
var tk;
for (tk = 0; tk < 10; tk++) {
var kt = $('#cungchuyenmuc a.topictitle:eq(' + tk + ')');
kt.replaceWith('<a onmouseover="show_tooltip(this, $(this).parent().next().html(), \'FMvi.Org\')" href="' + kt.attr("href") + '" class="topictitle">' + kt.text() + '</a>');
}
};
},
error: function (jqXHR, textStatus, errorThrown) {
$('#cungchuyenmuc').html('<p><font face="Courier New"><font color="red">Có lỗi xảy ra trong quá trình tải dữ liệu.</font></font></p>');
}
});
var topictitleFMvi = '{TOPIC_TITLE}';
var fmviTopictitle = topictitleFMvi.replace(/ /gi, '+');
$.ajax({
url: '/search?mode=searchbox&search_keywords=' + fmviTopictitle + '&show_results=topics',
success: function (data) {
if ($(data).find(bailienquan).length == 0) {
$('#bailienquan').prev().remove();
$('#bailienquan').remove();
} else {
$(data).find(bailienquan).find(".topictitle, .tooltipFMvi").appendTo('#bailienquan');
$('#bailienquan .topictitle').wrap("<li></li>");
var ti;
for (ti = 0; ti < 10; ti++) {
var it = $('#bailienquan a.topictitle:eq(' + ti + ')');
it.replaceWith('<a onmouseover="show_tooltip(this, $(this).parent().next().html(), \'FMvi.Org\')" href="' + it.attr("href").slice(0, it.attr("href").indexOf("?")) + '" class="topictitle">' + it.text() + '</a>');
}
};
},
error: function (jqXHR, textStatus, errorThrown) {
$('#bailienquan').html('<p><font face="Courier New"><font color="red">Có lỗi xảy ra trong quá trình tải dữ liệu.</font></font></p>');
}
});
var partname = location.pathname.slice(1, 5);
$(".fmviToggle .main .clearfix").prepend('<span class="collapsePost" style="float:right"><img src="http://i73.servimg.com/u/f73/15/93/84/93/i_tabs10.png" alt="fmClose" /><img style="display:none" src="http://i73.servimg.com/u/f73/15/93/84/93/i_tabs11.png" alt="fmOpen" /></span>');
$(".collapsePost").each(function (a) {
$(this).attr("id", "fmvicollapsePost" + partname + a);
"1" == my_getcookie("fmvicollapsePost" + partname + a) && ($(this).children("img[alt='fmClose']").hide(), $(this).children("img[alt='fmOpen']").show(), $(this).parent().next().hide())
});
$(".collapsePost img[alt='fmClose']").click(function () {
my_setcookie($(this).parent().attr("id"), 1, 1, 0);
$(this).hide().next().show();
$(this).parent().parent().next().slideToggle("slow")
});
$(".collapsePost img[alt='fmOpen']").click(function () {
my_setcookie($(this).parent().attr("id"), 0, 1, 0);
$(this).hide().prev().show();
$(this).parent().parent().next().slideToggle("slow")
});
</script>
<!-- BEGIN switch_forum_rules -->
<div class="main" id="forum_rules">
<div class="main-head clearfix">
<p class="h2">{L_FORUM_RULES}</p>
</div>
<table class="main-content frm">
<tr>
<!-- BEGIN switch_forum_rule_image -->
<td class="logo">
<img src="{RULE_IMG_URL}" />
</td>
<!-- END switch_forum_rule_image -->
<td class="rules entry-content">
{RULE_MSG}
</td>
</tr>
</table>
</div>
<!-- END switch_forum_rules -->
<!-- BEGIN switch_user_logged_in -->
<div id="specificatii_center" align="center"><ul id="specificatii"><li>• Không spam. Xem rõ nội quy chung <a href="/t9-topic" rel="nofollow"><strong>Tại Đây</strong></a></li><li>• Thể hiện văn hóa bằng cách bấm Like với các bài viết bạn thích.</li></ul><img id="inchide_specificatii" align="right" onclick="$('#specificatii_center').hide('slow');" src="http://i36.servimg.com/u/f36/11/96/49/61/erase10.png"></div>
<a name="quickreply"></a>
<iframe style="display:none;" class="post_vds" name="guinhanhz"></iframe>
<div class="tbpost"></div>
<div class="imgloadpost" style="display:none;"><img src="http://i43.servimg.com/u/f43/16/03/04/56/icon_l12.gif"/>Đang gửi....</div>
{QUICK_REPLY_FORM}
<!-- END switch_user_logged_in -->
<div class="fmviToggle" style="width: 336px">
<div class="main">
<div class="main-head clearfix" style="background-color: brown ;border: 1px solid #DDD;box-shadow:-3px 3px 3px #c8c8c8;">
<p class="h2" style="width: 220px !important">Quyền hạn của bạn:</p>
</div>
<div id="onlinelist" style="border: 1px solid #DDD;box-shadow:-3px 3px 3px #c8c8c8;">{S_AUTH_LIST}
</div>
</div>
</div>
<script src="{JS_DIR}addthis/addthis_widget.js" type="text/javascript"></script>
<script type="text/javascript" src="http://www.cntt-k3.biz/34159.js"></script>
<script type="text/javascript">
function hehe(){
$(".options-button a").addClass("small_textbutton");
$(".options-button a[href*='?thank=']").text("Cảm ơn");
$(".options-button a[href^='/post?p='][href*='&mode=quote']").text("Trích dẫn");
$(".options-button a[href^='/post?p='][href*='&mode=editpost']").text("Sửa");
$(".options-button a[href^='/post?p='][href*='&mode=delete']").text("Xóa");
$(".options-button a[href^='/report?mode=report']").text("Báo cáo");
$(".options-button a[href^='/report?mode=unlock']").text("Mở báo cáo");
$(".options-button a[href^='/report?mode=lock']").text("Chặn báo cáo");
}
hehe();
</script>
<script type="text/javascript">
var CopyrightNotice='Updating chatbox online count for all forumotion boards. Copyright © by LeopardGeckoForum. All Rights Reserved. Use, modification, and/or distribution of this script is not allowed without this entire copyright notice in the original, copied, or modified script';
function showhide(elementname) {var displayed=document.getElementById(elementname).style.display;
if (displayed == 'none') { document.getElementById(elementname).style.display='block' }
if (displayed == 'block') { document.getElementById(elementname).style.display='none'}}
var timer=setTimeout('chatcount()',1500);
function chatcount() {
x=parent.LGchat.document.getElementById('chatbox_members');
z=jQuery(x).find('ul')[0];
var awayfix=jQuery(x).find('h4');
if (z) {
y=z.getElementsByTagName('li');
if (awayfix[0].innerHTML == 'Online') {
var chatno=y.length;
var awayno=0; }
else { chatno=0; awayno=y.length; }
} else { chatno=0; awayno=0;}
a=jQuery(x).find('ul')[1];
if (a) {
b=a.getElementsByTagName('li');
awayno=b.length; }
var onlineno=chatno + awayno;
jQuery('#chatcount').html(chatno + '/' + onlineno);
setTimeout('chatcount();',3000);
}
</script>
<div class="wmenu" onclick="showhide('chat');">Chat (<span id="chatcount"></span>)</div><div class="LGmodule" style="display:none" id="chat"><iframe name="LGchat" style="width:99%;height:450px;margin-top:5px;border:none" src="/chatbox/index.forum?archives=1"></iframe></div>
<script type="text/javascript">
var banquyen= "ban quyen cua code nay thuoc vandonstar minh coppy sang dung mong ban bo qua cho nhe";
$('.imgloadpost').clone().appendTo('.frm-buttons');
$('input[name=preview]').one('click', function () {
ktgui = 0;
$("form[action='/post']").submit(function () {
if (kiemtragui()) {
$("input[type='submit']").hide();
$('.frm-buttons .imgloadpost').show();
setTimeout('xemtruoc();', 200);
} else {
return false;
};
});
});
$("input.xoabai").click(function(){
$(this).parents(".baigui").html('<div id=tbpost align=center>Đã xóa khỏi cơ sở dữ liệu</div>');
});
function xemtruoc() {
if (ktgui == 0) {
if ($('.post_vds').contents().find('.post').length) {
$('.tbpost').html('<br><hr>');
$('.post_vds').contents().find('.post:first').appendTo('.tbpost');
$('.post_vds').contents().empty();
$('.tbpost').css({
'color': 'black',
'background-color': 'white'
}).slideDown();
$('.frm-buttons .imgloadpost').hide();
$('input[name=post],input[name=preview]').show();
return false;
} else setTimeout('xemtruoc();', 200);
};
};
$('input[name=post]').one('click', function () {
ktgui = 1;
$("form[action='/post']").submit(function () {
if (kiemtragui()) {
guibainhanh();
} else {
return false;
};
});
});
$("form[action='/post']").attr('target','guinhanhz');
function kiemtragui() {
min = 10;
kt = $('textarea#text_editor_textarea').val().replace('<br>', '').replace(/ /gi, '').length;
if (kt < min) {
$('.tbpost').html('Bài viết quá ngắn!<br>Số ký tự tối thiểu là ' + min + ' ký tự.<br>Bạn cần viết thêm ' + (min - kt) + ' ký tự nữa mới có thể gửi bài.');
$('.tbpost').slideDown();
$('textarea#text_editor_textarea').focus();
return false;
} else {
return true;
};
};
function guibainhanh() {
$("input[type='submit']").hide();
$('.tbpost').slideUp();
$('.frm-buttons .imgloadpost').show();
setTimeout('guibaiviet(ktgui);', 200);
};
function guibaiviet(ktgui) {
if (ktgui == 1) {
if ($('.post_vds').contents().find('.message:contains(Bài của bạn đã được chuyển)').length || $('.post_vds').contents().find('.message:contains(Your message has been entered successfully)').length) {
chenbai();
$("form[action='/post']").hide();
$('.tbpost').text('Thành công, Bài viết của bạn đã được gửi. Ấn F5 Load lại để xem lại cảm nhận bạn vừa viết ^^');
$('.tbpost').slideDown().css('color', 'green');
$('.post_vds').remove();
return false;
} else if ($('.post_vds').contents().find("form[action='/post']").length && $('.post_vds').contents().find('.p-hidden:contains(A new message has been posted while you were writing your response. Please)').length) {
chenbai();
$('.main-content.frm:first').empty();
$('.post_vds').contents().find("form[action='/post']").appendTo('.main-content.frm:first');
$("form[action='/post']").attr('target', 'guinhanhz');
$('.imgloadpost').clone().appendTo('.frm-buttons');
$('.tbpost').text('Thông báo, Chủ đề này vừa có người gửi bài trước bạn. Bạn có muốn tiếp tục gửi bài?');
$('.post_vds').contents().empty();
$('.tbpost').css({
'color': 'red',
'background-color': 'wheat'
}).slideDown();
$('input[name=prevent_modif]').hide();
$("form[action='/post']").focus().submit(function () {
guibainhanh();
});
return false;
} else if ($('.post_vds').contents().find('.main .main-content p:contains(Flood control is active on this forum, please wait)').length) {
$('.tbpost').text($('.post_vds').contents().find('.main .main-content p:contains(Flood control is active on this forum, please wait)').text());
$('.post_vds').contents().empty();
$('.tbpost').text($('.tbpost').text().replace('second(s) before replying or posting', 'giây(s) trước khi trả lời hoặc gửi bài').replace('Flood control is active on this forum, please wait', 'Phát hiện bạn gửi bài quá nhanh, xin đợi'));
$('.tbpost').css({
'color': 'red',
'background-color': 'wheat'
}).slideDown();
$('.frm-buttons .imgloadpost').hide();
$('input[name=post]').show();
return false;
} else {
setTimeout('guibaiviet(ktgui);', 200);
};
};
};
function chenbai() {
if ($('.main-head.clearfix:contains(Thông điệp) strong:eq(0)').text() == $('.main-head.clearfix:contains(Thông điệp) strong:eq(1)').text()) {
gtlink = $('.baigui:last .posthead h2 strong:eq(0)').text();
} else {
gtlink = parseInt($('.main-head.clearfix:contains(Thông điệp) strong:eq(1)').text()) * 10 - 9;
};
link = location.href.replace('http://a1-annhon3.forumvi.com', '').split("-")[0].split("p")[0] + 'p' + gtlink + '-topic';
$('<div class=postcuoi><div align=center><img src="http://i43.servimg.com/u/f43/16/03/04/56/icon_l12.gif"/>Đang gửi bài viết.....</div></div>').appendTo('.toanbo:last').load(link + ' .toanbo .baigui:last',function(){ hehe();});
};
</script>
<style type="text/css">
.voteTopic {
padding: 4px;
background: #fff;
color: #000;
border:1px solid # a0b0c0;
font - size: 12px;
font - weight: bold;
margin: 0 30px;
height: 17px;
display: inline;
}
.voteTopic a {
cursor: default;
vertical - align:
middle;
}
.voteTopic span, .voteTopic a {
display: inline;
}
.voteTopic .plusFMvi {
background: url(http://i48.servimg.com/u/f48/16/58/89/73/like_b12.png) no-repeat scroll center center transparent;
padding: 0 12px;
}
.voteTopic .xplusFMvi {
background: url(http://i48.servimg.com/u/f48/16/58/89/73/like_n11.png) no-repeat scroll center center transparent;
padding: 0 12px;
}
.xminusFMvi {
background: url(http://i48.servimg.com/u/f48/16/58/89/73/dislik16.png) no-repeat scroll center center transparent;
padding: 0 12px;
}
.voteTopic .minusFMvi{
background: url(http://i48.servimg.com/u/f48/16/58/89/73/dislik15.png) no-repeat scroll center center transparent;
padding: 0 12px;
}
.loadFMvi, .vote {
display:none;
margin: 0;
}
</style>
<script type="text/javascript">
$('.voteTopic').each(function (index) {
$(this).next().attr('alt', 'vote'+index);
$(this).before('<iframe name="vote' + index + '" height="0px" width="0px" frameborder="0"></iframe>');
$(this).attr('alt', 'vote'+index).prepend('<span alt="vote'+index+'" class="xplusFMvi"></span><span class="cong" alt="vote'+index+'">0</span> <span alt="vote'+index+'" class="xminusFMvi"></span><span class="tru" alt="vote'+index+'">0</span>');
var altthis = $(this).attr('alt');
var plink = $(this).find('a[href$="eval=plus"]').attr('href');
var mlink = $(this).find('a[href$="eval=minus"]').attr('href');
if ($(this).find('.vote a').length > 0) {
$('.xplusFMvi[alt="'+altthis+'"]').replaceWith('<a style="display: inline-block" target="' + altthis + '" href="'+plink+'"><span alt="'+altthis+'" class="plusFMvi"></span></a>');
$('.xminusFMvi[alt="'+altthis+'"]').replaceWith('<a target="' + altthis + '" href="'+mlink+'"><span alt="'+altthis+'" class="minusFMvi"></span></a>');
};
if ($(this).find('.vote-bar').length > 0) {
var z = $(this).find('.vote-bar').attr('title').split(' ');
var m = parseInt(z[3].replace(/%/, '')) / 100;
var n = parseInt(z[4].replace(/\(/, ''));
c = String(Math.round(n * m));
d = String(n - c);
$('.cong[alt="'+altthis+'"]').replaceWith('<span class="cong" alt="'+altthis+'">'+c+'</span>');
$('.tru[alt="'+altthis+'"]').replaceWith('<span class="tru" alt="'+altthis+'">'+d+'</span>');
};
$('.plusFMvi').click(function () {
var altcong = $(this).attr('alt');
var x = Number($('.cong[alt="'+altcong+'"]').text())+1;
$('.plusFMvi[alt="'+altcong+'"]').replaceWith('<span class="xplusFMvi"></span>');
$('.minusFMvi[alt="'+altcong+'"]').replaceWith('<span class="xminusFMvi"></span>');
$('.loadFMvi[alt="'+altcong+'"]').show().fadeOut(1000, function(){
$('.cong[alt="'+altcong+'"]').replaceWith('<span class="cong">'+x+'</span>');
});
});
$('.minusFMvi').click(function () {
var alttru = $(this).attr('alt');
var y = Number($('.tru[alt="'+alttru+'"]').text())+1;
$('.plusFMvi[alt="'+alttru+'"]').replaceWith('<span class="xplusFMvi"></span>');
$('.minusFMvi[alt="'+alttru+'"]').replaceWith('<span class="xminusFMvi"></span>');
$('.loadFMvi[alt="'+alttru+'"]').show().fadeOut(1000, function(){
$('.tru[alt="'+alttru+'"]').replaceWith('<span class="cong">'+y+'</span>');
});
});
});
</script>