 
- 積分
- 446
- 威望
- 446
- 金錢
- 278
- 最後登錄
- 2025-2-4
|
回復 5# n7197
我也试了,有显示头像空头,但无法显示上传的pic
1.
- <script>
- if(discuz_uid){function avcut(bid){bid='00000'+bid;bid=bid.substring(bid.length-6,bid.length);bid=bid.substring(0,2)+'/'+bid.substring(2,4)+'/'+bid.substring(4,6);return'<div style="float:left;"><a href="space.php?uid='+discuz_uid+'"><img src="http://你的网址/uc_server/avatar.php?uid=$thread[authorid]&size=small'+bid+'_avatar_middle.jpg" class="ava_border" style="heigh:25px;width:25px;border-radius: 5px;padding:2px;border:1px solid;border-color:#F2F2F2 #CDCDCD #CDCDCD #f2f2f2;background:#fff;" onerror="this.onerror=null;this.src=\'http://你的网址/uc_server/images/noavatar_small.gif\'" /></a></div><p style="float:left;">'};$('umenu').innerHTML = avcut(discuz_uid) + $('umenu').innerHTML+"</p>";}
- </script>
複製代碼 |
|