God's Linh TinhAdministrator
| Bài gửi : 84 LTcoin : 5155 Được cảm ơn : 4 Đang : I'm God's Linh Tinh |
| | | | Backround for username (CSS)
- Code:
a[href="/u1"] { text-shadow: 0px 0px 5px #FF00D0; } - Code:
a[href="/u1"] { background: url("http://i45.servimg.com/u/f45/15/95/60/34/glitte10.gif"); } Trượt tiêu đề (CSS)
- Code:
/* Trượt tiêu đề mỗi box */ a.forumtitle { -moz-transition-duration: 1.5s; -webkit-transition-duration: 1.5s; -o-transition-duration: 1.5s; }
a.forumtitle:hover { margin-left: 50px; } Thay dấu :: bằng hình ảnh
Demo :
- Code:
.nav{ font-weight: bold; font-size: 11px; color : transparent; } span a.nav,.albumframe a.nav{font-weight: bold; font-size: 11px; background: none;padding: 0px;} a.nav,span.nav a.nav{ text-decoration: none; color: #2EB300; background-image: url(/users/2211/12/43/96/album/tai_xu10.png); background-position: left center; background-repeat: no-repeat; padding-right: 0px; padding-left: 15px; } Màu nền cho chatbox (CSS)
- Code:
#chatbox,#chatbox_footer,#chatbox_members{background-color:#FFF} Thay #FFF = mã màu muốn có
Chatbox tự đăng nhập (Index_body thay CHATBOX_TOP bằng code sau)
Lưu ý : chỉnh chiều cao của chatbox thay số 400px = 1 số muốn
- Code:
<iframe frameborder="0" width="100%" height="400px" onerror="firstchatfmvi()" src="/chatbox/index.forum?archives=1" onload="firstchatfmvi()" id="chatfmvi"></iframe> <script type="text/javascript">function firstchatfmvi() {setTimeout(function () {if ($("#chatfmvi").contents().find("#chatbox_option_disco").css("display") == "none") {$("#chatfmvi")[0].contentWindow.CB_disconnect()}}, 2000);}</script> Thay nút thanks bằng nút like và dislike
- Spoiler:
Bước 1: Tìm đoạn mã sau trong viewtopic_body và xóa nó đi: - Code:
<!-- 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 --> Thay bằng code : - Code:
<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> Chèn tiếp vào cuối view2pic - Code:
<style type="text/css"> .voteTopic { padding: 4px; background: #fff; 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>
| | | | |
|
God's Linh TinhAdministrator
| Bài gửi : 84 LTcoin : 5155 Được cảm ơn : 4 Đang : I'm God's Linh Tinh |
God's Linh TinhAdministrator
| Bài gửi : 84 LTcoin : 5155 Được cảm ơn : 4 Đang : I'm God's Linh Tinh |
God's Linh TinhAdministrator
| Bài gửi : 84 LTcoin : 5155 Được cảm ơn : 4 Đang : I'm God's Linh Tinh |
Thông điệp [Trang 1 trong tổng số 1 trang]
Similar topics
Similar topics
Permissions in this forum:
Bạn không có quyền trả lời bài viết