Welcome Guest [Log In] [Register]
Chào mừng bạn đến với »»--(¯`°ZetaFamily°´¯)--»» - nơi chia sẽ những thủ thuật cho forum Zetaboards

-‘๑’- Bạn hiện đang xem diễn đàn của chúng tôi với tư cách là Khách.Điều này có nghĩa là bạn sẽ không thấy được hệ thống các code được chia sẽ trên diễn đàn.

-‘๑’- Đăng Ký rất đơn giản, nhanh chóng, và hoàn toàn miễn phí. Nhấp chuột vào ĐÂY

-‘๑’- Sử dụng Firefox để đăng nhập Forum dễ dàng hơn !

-‘๑’- Nếu đã có tài khoản hãy đăng nhập dưới đây :

-‘๑’- Chúc bạn một ngày tốt lành -‘๑’-

Username:   Password:
Add Reply
[ZB code] Tài sản + Ẩn hiện
Topic Started: Jun 1 2011, 02:06 PM (332 Views)
ZetaFamily
Member Avatar
Tôi yêu Zetaboards

Posted by Roby. Thank you for sharing

Preview: Posted Image

Đặt code tại Below the boards

Code:
 

<script type="text/javascript">
//<![CDATA[
(function() {
if (location.href.indexOf('topic/') !==-1) {

/* Edit here */
var adoptions = [
['ID mem bẻ',['#','link hình ảnh'],['#','link hình ảnh']],
['ID member',['#','link hình ảnh'],['#','link hình ảnh']]
];

/* Stop editing here */
$('td.c_username a.member').each(function() {
var a = adoptions.length;
while (a--) {
if ($(this).attr('href').split('profile/')[1].split('/')[0] === adoptions[a][0]) {
$(this).parent().parent().next().find('td.c_user dl:last').after("<dl class='user_adoptions' style='text-align:center;'></dl>")
var b = adoptions[a].length;
while (b-- && b !== 0) {
$(this).parent().parent().next().find('td.c_user dl.user_adoptions').append("<a href='" +adoptions[a][b][0]+ "'><img src='" +adoptions[a][b][1]+ "' style='margin:3px;' /></a>");
}
}
}
});
$('.user_adoptions').each(function() {
if ($(this).find('a').length > 6) {
$(this).append("<span class='extra_cards' style='display:none;'></span><dd class='spacer'></dd><span style='cursor:pointer' class='more_cards'>[Hiển thị thêm]</span><dd class='spacer'></dd>");
$('.extra_cards').each(function() {
$(this).parent().find('a:gt(5)').appendTo($(this));
});
}
});
$('.more_cards').click(function() {
$(this).parent().find('.extra_cards').slideToggle();
});

}
})();
//]]>
</script>


Muốn thêm nhiều member thì lập lại code
Code:
 
['ID mem bẻ',['#','link hình ảnh'],['#','link hình ảnh']],

nhớ cách nhau dấu phẩy ","
Offline Profile Quote Post TOP
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Code Forum · Next Topic »
Add Reply

Liên Kết Forum

Copyright©2011,ZetaFamily™.All rights reserved
Xem tốt nhất trên các trình duyệt FireFox hoặc Google Chrome
Diễn đàn là một hệ thống mở,chúng tôi sẽ không chịu trách nhiệm về nội dung đăng tải do người dùng đưa lên.
ZetaFamily Theme designed by ZetaFamily.Co.Cc