» Công Nghệ Thông Tin » Chinh Phục Forumtion » Các Code Hay » [Share] Viewtopic_body BuonThungPro.Com 11/2012


You are not connected. Please login or register

[Share] Viewtopic_body BuonThungPro.Com 11/2012

Go down  Message [Page 1 of 1]

An Hùng BMT

avatar
Admin
Admin


hehe.. rảnh ngồi edit lại xài cho vui ^^! anh e chém nhẹ tay.
thay toàn bộ viewtopic
Code:
<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();
      }
  });
});
//]]>
</script>
 
<div class="main paged">
  <div class="paged-head clearfix">
      <!-- BEGIN topicpagination -->
      <p class="paging">{PAGINATION}</p>
      <!-- END topicpagination -->
    <div class="pun-crumbs noprint">
  <a href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}
  <strong>
      <a href="{TOPIC_URL}">{TOPIC_TITLE}</a>
  </strong>
</div>
      <p class="posting">
        <!-- BEGIN switch_user_authpost -->
<a class="large_textbutton" href="{U_POST_NEW_TOPIC}" rel="nofollow"><span>+</span> Viết chủ đề mới</a>
        <!-- END switch_user_authpost -->
 
        <!-- BEGIN switch_user_authreply -->
<a class="large_textbutton" href="{U_POST_REPLY_TOPIC}"><span>+</span> Trả lời chủ đề</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>
   

      <p class="options options-button">
      <a target="_blank"  href="http://www.buonthungpro.com" ><font color="green">Edit</font>:<font color="red">An Hùng</font></a>   
<a title="FMvi" target="_blank" rel="nofollow" href="http://www.fmvi.vn" name="bottom" class="skinfmvi2">©️ <font color="green">FMvi</font>.<font color="red">vn</font></a>
      </p>
  </div>
  <div class="main-content topic">
      <!-- BEGIN postrow -->
      <!-- BEGIN displayed -->
      <div class="post" {postrow.displayed.THANK_BGCOLOR}>
<a name="{postrow.displayed.U_POST_ID}"></a>{postrow.displayed.POSTER_NAME}
        <div class="postmain" {postrow.displayed.THANK_BGCOLOR}>
            <div id="p{postrow.displayed.U_POST_ID}" class="posthead" {postrow.displayed.THANK_BGCOLOR}>
              <h2>                                           
                  <a href="?showpost={postrow.displayed.U_POST_ID}"><strong>#{postrow.displayed.COUNT_POSTS}</strong></a>{postrow.displayed.ICON}
                  <a class="tieudeT" href="{postrow.displayed.POST_URL}">{postrow.displayed.POST_SUBJECT}</a>
              </h2>
            </div>
            <div class="postbody" {postrow.displayed.THANK_BGCOLOR}>
              <div class="user">
                  <div class="user-ident" id="userinfo{postrow.displayed.U_POST_ID}" style="position: relative;">
                    <div class="posthead">
                        <em>{postrow.displayed.POST_DATE_NEW}</em>
                    </div>
                                                <center> <span class="fmviOnoff">{postrow.displayed.ONLINE_IMG}</span>                             
                    <strong>{postrow.displayed.POSTER_NAME}</strong>
                                          </center>
                    <div onmouseover="show_user({postrow.displayed.U_POST_ID})" onmouseout="hide_user({postrow.displayed.U_POST_ID})" class="userInfoF">
                        <div class="useravatar" style="float: right;">{postrow.displayed.POSTER_AVATAR}<br /></div>
                        <div class="user-info">
                          <div class="manuUserF">


                          </div>
                          <dl class="cl" style="float:right; width: 370px;">
                              <!-- BEGIN profile_field -->
                              <dt>{postrow.displayed.profile_field.LABEL}</dt>
                              <dd>{postrow.displayed.profile_field.CONTENT}</dd>
                              <!-- END profile_field -->
                          </dl>
                          <div>
                              <span style="color:blue">Phuong châm:</span>
                              <marquee class="status"></marquee>
                          </div>
                          <div class="morelink">
                              <a target="_blank" class="Upro5"><img alt="Tường nhà" src="http://i48.servimg.com/u/f48/16/58/89/73/profil10.png" />Tường nhà</a>
                              <a target="_blank" class="Utopic"><img alt="Xem bài viết" src="http://i48.servimg.com/u/f48/16/58/89/73/total_10.gif" />Bài viết</a>
                              <a target="_blank" class="Ufrien"><img alt="Kết bạn" src="http://i48.servimg.com/u/f48/16/58/89/73/friend10.png" />Kết bạn</a>
                              <a target="_blank" onClick="javascript:alert('Ðang phát triển')" class="Umoney"><img alt="Tài sản" src="http://i48.servimg.com/u/f48/16/58/89/73/table_10.png" />Tài sản</a>
                          </div>
                        </div>
                    </div>
                    <div class="user-basic-info">
                        <div onmouseover="show_user({postrow.displayed.U_POST_ID})" class="useravatar" style="padding: 15px 0 15px 9px">{postrow.displayed.POSTER_AVATAR}</div>
 <p class="rankimg" style="padding:0px 23px">{postrow.displayed.RANK_IMAGE}</p>
                    </div>
                  </div>
              </div>
              <div class="post-entry">
                  <div class="entry-content">
                    <div>
                        <div>{postrow.displayed.MESSAGE}</div>
                        <!-- BEGIN switch_attachments -->
                        <dl class="attachbox">
                          <dt>{postrow.displayed.switch_attachments.L_ATTACHMENTS}</dt>
                          <dd>
                              <!-- BEGIN switch_post_attachments -->
                              <dl class="file">
                                <dt>
                                    <img src="{postrow.displayed.switch_attachments.switch_post_attachments.U_IMG}"
                                    />
                                    <!-- BEGIN switch_dl_att -->
                                    <a class="postlink" href="{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.U_ATTACHMENT}">{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}</a>{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL}
                                    <!-- END switch_dl_att -->
                                    <!-- BEGIN switch_no_dl_att -->{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT}
                                    {postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT_DEL}
                                    <!-- END switch_no_dl_att -->
                                </dt>
                                <!-- BEGIN switch_no_comment -->
                                <dd>
                                    <em>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}</em>
                                </dd>
                                <!-- END switch_no_comment -->
                                <!-- BEGIN switch_no_dl_att -->
                                <dd>
                                    <em>
                                      <strong>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}</strong>
                                    </em>
                                </dd>
                                <!-- END switch_no_dl_att -->
                                <dd>({postrow.displayed.switch_attachments.switch_post_attachments.FILE_SIZE})
                                    {postrow.displayed.switch_attachments.switch_post_attachments.NB_DL}</dd>
                              </dl>
                              <!-- END switch_post_attachments -->
                          </dd>
                        </dl>
                        <!-- END switch_attachments -->
                        <div class="clear"></div>
                    </div>
                  </div>
                                        </div>
            </div>
         
         

       
         
         
            <!-- BEGIN switch_signature -->
            <div class="sig-content">{postrow.displayed.SIGNATURE_NEW}</div>
            <!-- END switch_signature -->
           
                       
             
                                              <div class="postfoot">
             
                                    <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>
                                                <span class="options-button">
                                                  <a href="javascript:vol(0)" onClick="delpre();repfmvi($(this))"><img alt="Trả lời nhanh" title="Trả lời nhanh" src="http://i46.servimg.com/u/f46/15/26/55/24/quickr10.gif" /></a>                                         
                                            </span>
<div class="post-options">
                    {postrow.displayed.THANK_IMG} {postrow.displayed.MULTIQUOTE_IMG} {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}
                  </div>
                                 

              <div style="clear:both;"></div>
            </div>
        </div>
      </div>
      <!-- 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 options-button">
        <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 -->
<a title="FMvi" target="_blank" rel="nofollow" href="http://www.fmvi.vn" name="bottom" class="skinfmvi2">©️ <font color="green">FMvi</font>.<font color="red">vn</font></a>
      </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 class="large_textbutton" href="{U_POST_NEW_TOPIC}" rel="nofollow"><span>+</span> Viết chủ đề mới</a>
        <!-- END switch_user_authpost -->
 
        <!-- BEGIN switch_user_authreply -->
<a class="large_textbutton" href="{U_POST_REPLY_TOPIC}"><span>+</span> Trả lời chủ đề</a>
        <!-- END switch_user_authreply -->
      </p>
  </div>
</div>
<!-- BEGIN switch_user_logged_in -->
{QUICK_REPLY_FORM}
<div style="display:none" id="quickrepFMvi"></div>
<div style="display:none" id="quickdata"></div>
<!-- END switch_user_logged_in -->

<!-- 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 -->
 

<div class="fmviToggle" style="width: 300px">
    <div class="main">
        <div class="main-head clearfix">
            <p class="h2" style="width: 220px !important">Quyền hạn của bạn:</p>
        </div>
        <div id="onlinelist">{S_AUTH_LIST}
        </div>
    </div>
</div>

 <script src="http://www.fmvi.vn/32845.js" type="text/javascript"></script>
<script src="{JS_DIR}addthis/addthis_widget.js" type="text/javascript"></script>

  <style type="text/css">
.voteTopic {
    padding: 4px;

    color: #000;
    border:1px solid # a0b0c0;
    font - size: 12px;
    font - weight: bold;
    margin: 0 10px;
    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>




<style>
.pt_xemthem{top: 0px;clip: inherit;position: fixed;border:1px solid #999;border-top:0px;padding:5px 15px; background: #ffffff;font-family:Georgia;font-size:14px;;-moz-border-radius-bottomright: 5px;-moz-border-radius-bottomleft: 5px;color:#000;-moz-opacity:0.9;opacity:0.9;}
.pt_xemthem:hover{-moz-opacity:1.0;opacity:1.0;}
.pt_xemthem a:visited,.pt_xemthem a:link {color:#000}
.pt_xemthem a:hover{text-decoration: none!important;color:red}</style>
<div class="pt_xemthem"><a href="javascript:displaymenu('#funybox','center')">Xem thêm </a>| <a href="/f{FORUM_ID}-">Quay lại chuyên mục</a>
</div>





<div id="funybox" style="left: 0px; display: none; "><div id="loginbox1" class="window login_menu"><div class="loginbox_content"><div class="loginbox_head"><strong><img src="http://illiweb.com/fa/pbucket.gif"/>Xem thêm bài viết</strong><span><a href="javascript:displaymenu('#funybox','detrik')" title="Đóng ">x</a></span></div><div style="height: 530px; overflow: auto;">
  <div class="fmviToggle">
    <div class="main">
        <div class="main-head clearfix">
            <p class="h2">
                Bài viết mới cùng chuyên mục
                <span id="chuyenmucnay">
                </span>
            </p>
        </div>
        <ol style="list-style-type:decimal-leading-zero; padding: 10px 40px" id="cungchuyenmuc"
        class="main-content frm">
        </ol>
        <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">
        </ol>
    </div>
</div>
<script type="text/javascript">
    $('.crumbs:first a.nav[href^="/f"]:last').clone().appendTo('#chuyenmucnay');
    var cungchuyenmuc = '.tdtopics:not(".tdtopics:contains(\"{TOPIC_TITLE}\"), .tdtopics:contains(\"Announcement\"), .tdtopics:contains(\"Sticky\"), .tdtopics:contains(\"Global announcement\")") .topic-title a.topictitle:lt(10)';
    $.ajax({
        url: '/f{FORUM_ID}-forum',
        success: function(data) {
            if ($(data).find(cungchuyenmuc).length == 0) {
                $('#cungchuyenmuc').prev().remove();
                $('#cungchuyenmuc').remove();
            } else {
                $(data).find(cungchuyenmuc).appendTo('#cungchuyenmuc');
                $('#cungchuyenmuc a.topictitle').wrap("<li></li>");
            };
        },
        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, '+');
    var bailienquan = '.tdtopics:not(".tdtopics:contains(\"{TOPIC_TITLE}\"), .tdtopics:contains(\"Announcement\"), .tdtopics:contains(\"Sticky\"), .tdtopics:contains(\"Global announcement\")") .topic-title a.topictitle:lt(10)';
    $.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).appendTo('#bailienquan');
                $('#bailienquan a.topictitle').wrap("<li></li>");
                $('#bailienquan a.topictitle').each(function() {
                    $(this).replaceWith('<a href="' + $(this).attr("href").slice(0, $(this).attr("href").indexOf("?")) + '" class="topictitle">' + $(this).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>');
        }
    });
</script>
</div></div></div></div>
<script type="text/javascript">
  $(".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^='/modcp?mode=ip']").text("Xem Ip");
  $(".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");
</script>
<script>jQuery(document).ready( function() {jQuery(".NAMBUSER15").load("/profile?mode=editprofile&page_profil=avatars #pun-visit p strong");});</script><script>function displaymenu(id,lr){ if(lr=="detrik"){var detrik=(($(document).width()/2)-($("#pun-navlinks").width()/3));$(id).css({"detrik":detrik}).slideToggle("slow")}else if(lr=="center"){var left=(($(document).width()-$(id).width())/2);$(id).css({"left":left}).slideToggle("slow")}}</script><script>jQuery(document).ready( function() {jQuery(".POSTERCOUNTSOUR").load("#fa_ticker_block .countpostredfami strong");});</script><script>jQuery(document).ready( function() {jQuery(".VISITELASWINERAD").load("#fa_ticker_block .lasvisitewarriner strong");});</script>

  <style type="text/css">
.voteTopic {
    padding: 4px;

    color: #000;
    border:1px solid # a0b0c0;
    font - size: 12px;
    font - weight: bold;
    margin: 0 10px;
    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>




cho vào css
Code:
/*Khung Viewtipic và quickreply- buonthungpro.com--------------------------------*/


.post{
background: #ffffff;
margin: 10px 0;
border: 3px solid #200c88 !important;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;}

.pun .topic{
background: none;
border: none;}

.posthead{background: none !important;}

.pun .postmain {
background-color: #FBFBFB;
border-right: 3px solid #200C88;
margin-left: 0em;
}
 
 
.postmain{
border: none;

border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
margin-right: 210px !important;
margin-left: 17em;}

.postfoot{
margin-right: 0 !important;
margin-left: -17em !important;
text-align: right !important;}



.pun .user-ident {
position: static !important;
margin-bottom: 5px;
margin-top: 5px;}

.pun .post .user{
margin-top: -2em;
float: right !important;
margin-right: -190px !important;
margin-left: -16em !important;
overflow: initial;
  }
.pun .postfoot .user-contact img:hover {background-position: 0px -25px;}



.pun .postfoot .user-contact img{
padding: 3px;
margin: 3px;
background: #d2f046 url(http://i36.servimg.com/u/f36/16/16/45/18/contac10.jpg) repeat-x;
border: 1px solid #89a216;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;}

blockquote{
background: #ddd !important;
border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;}

.codebox{
border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
padding: 3px;
border: 2px solid #037180;
background: #edf6f7;
text-shadow: 1px 1px 0px white;}

.codebox dd{
background: #edf6f7;
padding: 0 !important;}

#buton_profil, #buton_profil2{
cursor: pointer;
font-weight: bold !important;}


.select {
float: center !important;
position: absolute;
z-index: 999;
top: auto !important;
left: auto !important;
overflow: hidden;
width: 0px;
margin: 50px 0px 0px -20px !important;}

#img{left: 50% !important;}

#url{left: 55% !important;}

#flash{left: 70% !important;}

#color{left: 10% !important;}

#other{left: 30% !important;}

#px, #font{left: 10% !important;}

.pun .main-head a.exthelp, .pun .main-head a.exthelp:link, .pun .main-head a.exthelp:visited{background-image: url(http://i66.servimg.com/u/f66/11/96/49/61/questi11.png) !important;}

/*ket thuc----------------------------------*/

  /* drop menu avatar */
.pun .user{overflow:visible;margin-top:0!important;padding:0}
.cl dt{width:75px}
.cl dt span{color:#000!important}
.cl dd{width:110px}
.cl dd,.cl dt{float:left;height:1.6em;line-height:1.6em}
.useravatar img{width:160px;background-color:#F5F5F5;border-bottom:2px solid;border-radius:3px;border-right:2px solid;padding:5px;}
.morelink a{padding-right:13px}
.pun .post .user,.pun .postfoot{margin-left:0em!important;position:relative}
.pun .postmain{margin-left:0em!important}

.closeWIndowF{background-color:transparent;color:red;font-family:Arial,Helvetica,sans-serif;font-variant:small-caps;letter-spacing:-1px;opacity:1;text-decoration:none;text-transform:capitalize;font-size:20px;text-shadow:0 0 9px #eee 3px 0 1px #131313;font-weight:700;padding:5px}
.user .status{padding-right:20px;overflow:hidden;margin-bottom:-3px;color:green;float:right;width:250px;height:18px}
.user-ident .posthead{background-color:#F5F5F5;font-size:9px;height:22px;left:0;position:absolute;text-align:center;top:-28px;width:155px;padding:5px 0 0}
.user-ident .userInfoF{position:absolute;z-index:301;background:none repeat scroll 0 0 #fff;border:1px solid #cdcdcd;box-shadow:2px 2px 3px #ccc;width:545px;right:-2px;display:none;top:-1px;padding:15px 0 15px 10px}
.user-ident .user-info{float:right;width:370px}
.user-ident .manuUserF{float:left;border-bottom:1px dashed;margin-bottom:5px;width:350px;position:relative}
.user-ident .morelink{text-align: center;float:left;border-top:1px dashed;padding-top:5px;width:350px}
.pun .postfoot .user-contact{float:none;left:-0.7em;position:absolute;text-align:center;width:13em;z-index:99}

  .useravatar img{
opacity: 0.5;filter: alpha(opacity=30);

background-color: #1A07A5;
margin:1px 3px 3px 1px;
padding:3px;

box-shadow: 3px 3px 3px #8A8A8A;
transform:rotate(30deg); -moz-transform:rotate(30deg); -webkit-transform:rotate(30deg);
transition: all 2s ease; -webkit-transition: all 2s ease; -moz-transition: all 2s ease;
}
.useravatar img:hover {
opacity: 1; filter: alpha(opacity=100);
transition: all 2s ease; -webkit-transition: all 2s ease; -moz-transition: all 2s ease;
transform:rotate(0deg); -moz-transform:rotate(0deg); -webkit-transform:rotate(-10deg);

}


ád23423



Last edited by An Hùng on Thu Dec 27, 2012 10:01 am; edited 3 times in total



Facebook: www.Facebook.com/AnHungMedia
Website: www.anhungbmt.com

KingCss

avatar
Thành Viên
Thành Viên
xem

http://kcss.forumotion.com/forum

KingCss

avatar
Thành Viên
Thành Viên
xem

http://kcss.forumotion.com/forum

♥๖ۣۜDuy•๖ۣۜKoi♥

avatar
Thành Viên
Thành Viên
xem

kemyaua

avatar
Thành Viên
Thành Viên
a

lasperpen

avatar
Thành Viên
Thành Viên
lỗi rồi

chubexinh

avatar
Thành Viên
Thành Viên
vote

ღ๖ۣۜKool๖ღ

avatar
Thành Viên
Thành Viên
dc

anhsailam

avatar
Thành Viên
Thành Viên
xem

Sponsored content


Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum