代码
<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>