获取QQ在线状态

代码
<script language = "JavaScript">
var online = new Array();
var QQNumber = new Array("419332997","1243521479","774622801");
</script>

<script language ="JavaScript" src ="http://webpresence.qq.com/getonline?Type=1&419332997:1243521479:774622801:"></script>
<script language ="javaScript">
for (i = 0 ;i < online.length;i ++ )
{
document.write(
"<a href='tencent://message/?uin="+ QQNumber[i]+"&Site=http://blog.csdn.net/jinshi_cn&Menu=yes'>");
document.write(
"<img src='qqimg_" +online[i]+ ".gif'>"+ QQNumber[i]+"</a>");
}
</script>

 

posted on 2010-08-17 09:01  merrick  阅读(425)  评论(0编辑  收藏  举报