QQ 批量查询显示状态 js!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script>
 
 
 
//by www.cd-dns.com
 
var online = new Array();
 
 
 
function line(status,cname,qq){
 
        if ( status == 0){
 
                document.write("<a href='tencent://message/?uin="+qq+"&site=www.cd-dns.com&menu=yes' target='_blank'><img alt='暂时离开,有事请留言' src='images/qqoffline.gif' align='absmiddle' border='0'>-"+cname+" qq:"+qq+"</a>");
 
        }else{
 
                document.write("<a href='tencent://message/?uin="+qq+"&site=www.cd-dns.com&menu=yes' target='_blank'><img alt='我在线上请Q我' src='images/qqonline.gif' align='absmiddle' border='0'>-"+cname+" qq:"+qq+"</a>");
 
        }
 
}
 
</script>
 
<script src="http://webpresence.qq.com/getonline?Type=1&669811:1026811:65861413:"></script>

调用

1
<script>line(online[0],'白天',669811)</script>

效果页面见 http://cd-dns.com/freebsd-hosting

不过现在已经被TX禁了,找个时间在重写一下吧

发表评论

电子邮件地址不会被公开。 必填项已用*标注