Quên mật khẩu?

Ẩn quảng cáo - Esc
 » Thủ Thuật Tổng Hợp » Thủ Thuật Dành Cho Forum » Code [TUT] Avatar sau toolbar của fm

Thích bài này? Bài trướcBài sau

Admin

Tue Jan 21, 2014 12:45 pm

#1
  • Admin

Admin



Administrator
https://vngame-vip.forumvi.com
Administrator
Gia nhập : 12/09/2013
Tổng số bài gửi : 999
Đồng vàng : 27341
Cảm ơn : 4056
[TUT] Avatar sau toolbar của fm Empty [TUT] Avatar sau toolbar của fm

[TUT] Avatar sau toolbar của fm Untitl13
Author: DrDuyWin
Cách làm:
Tạo 1 javascript:
[TUT] Avatar sau toolbar của fm 215
Code:
$(function(){
$('#fa_welcome').after('
<div id="avatartbdw" class="avdw"></div>
');
});
jQuery(document).ready(function(){
  jQuery.get('/profile?mode=editprofile&page_profil=avatars', function(data) {
      link = jQuery('.frm dl dd img', data).attr('src');
      if(link){
    jQuery('#avatartbdw').html('<a href="/profile?mode=editprofile&page_profil=avatars"><img src="'+link+'" alt="" /></a>');
      }else{
        jQuery('#avatartbdw').html('');
      }
  });
});
CSS:
Code:
.avdw {
width: 25px;
height: 25px;
position: relative;
margin-top: -20px;
margin-left: -13px;
margin-bottom: -5px;
}
Trả lời chủ đề này

Điện thoại: 050077777777777777 - Email: trihaivippro258@gmail.com - Yahoo: trihaivip_258@yahoo.com - Bảng báo giá