|
ZetaFamily
|
May 5 2011, 08:22 AM
Post #1
|
Tôi yêu Zetaboards
- Posts:
- 1,677
- Group:
- Administrators
- Member
- #1
- Joined:
- Jul 27, 2010
- My forum:
- http://zetafamily.co.cc
|
Posted by Quozzo
Preview:
Code 1:

Code 2:

Đặt code tại Below the boards
Code 1:
- Code:
-
<script type='text/javascript'> /* Alt Forum Info by Quozzo */ //Info to the side if($('.c_info').length){ $('.c_info').each(function(){ var v = $(this).find('.c_info-v').html() || "0"; var t = $(this).find('.c_info-t').html(); var r = $(this).find('.c_info-r').html(); $(this).prev().find('.c_last').after("<td style='width:9%;'>"+v+"<br />"+t+"<br />"+r+"</td>").attr('colspan','1') $(this).prev().find('.c_mark').attr('rowspan',$(this).prev().find('.c_mark').attr('rowspan')-1); $(this).remove(); }); $('.category .c_subforum, .category .c_foot').attr('colspan','4'); $('.category .redirect .c_last').attr('colspan','5'); $('.category .c_forum').attr('rowspan','1'); }; </script>
Code 2:
- Code:
-
<script type='text/javascript'> /* Alt Forum Info by Quozzo */ if($('.c_info').length){ $('.forums tbody:has(.c_forum)').prepend("<tr><th></th><th>Forum</th><th style='text-align:center;'>Viewers</th><th style='text-align:center;'>Topics</th><th style='text-align:center;'>Replies</th><th>Last Post</th></tr>"); $('.c_info').each(function(){ var v = $(this).find('.c_info-v').length ? $(this).find('.c_info-v').html().replace(" viewer","").replace("s","") : "0"; var t = $(this).find('.c_info-t').html().replace("Topics: ",""); var r = $(this).find('.c_info-r').html().replace("Replies: ",""); $(this).prev().find('.c_last').before("<td style='width:9%;text-align:center;'>"+v+"</td><td style='width:9%;text-align:center;'>"+t+"</td><td style='width:9%;text-align:center;'>"+r+"</td>").attr('colspan','1'); $(this).prev().find('.c_mark').attr('rowspan',$(this).prev().find('.c_mark').attr('rowspan')-1); $(this).remove(); }); $('.category .c_subforum, .category .c_foot').attr('colspan','6'); $('.category .redirect .c_last').attr('colspan','2').prev().attr('colspan','4') $('.category .c_forum').attr('rowspan','1'); }; </script>
Thank Quozzo
|