http://r.qzone.qq.com/cgi-bin/user/cgi_personal_card?uin=Specify QQ number
The following will be returned:
_Callback(
{"uin":Query QQ number,
"qzone":1,
"nickname":"nickname",
"offsetBirth": the number of days until the birthday,
"avatarUrl":"Queryed QQ number avatar address"});
For this content, implement _Callback in advance, then place the above URL in <script src=>, use the returned content to execute the _Callback function, and process the data. For example, in the following example, the data is simply explained in the correct manner, displayed in a DIV, and the avatar is displayed directly as a picture:
Copy the code code as follows:
<div id='theforever'>.</div>
<mce:script type="text/javascript"><!--
function _Callback(msg){
with(msg){
document.getElementById('theforever').innerHTML='Nickname:'+nickname+'<br/><img src="'+avatarUrl+'" mce_src="'+avatarUrl+'"><br/>Number of days until birthday: '+offsetBirth;
}
}
// --></mce:script>
<mce:script language="javascript" type="text/javascript" src="http://r.qzone.qq.com/cgi-bin/user/cgi_personal_card?uin=Specify QQ number" mce_src="http: //r.qzone.qq.com/cgi-bin/user/cgi_personal_card?uin=Specify QQ number"></mce:script>