120、检测QQ在线状况

120、检测QQ在线状况

脚本说明:

把如下代码加入<body>区域中

<script language=vbscript>

Function GetURL(url)

Set Retrieval = CreateObject("Microsoft.XMLHTTP")

With Retrieval

.Open "GET", url, False, "", ""

.Send

GetURL = .ResponseText

End With

Set Retrieval = Nothing

End Function

</script>

小图标:

<script language=vbscript>

Dim T,Start,Length,PicURL

T=GetURL("http://search.tencent.com/cgi-bin/friend/oicq_find?oicq_no=5073937")

Start=Instr(1,T,"ShowResult("+chr(34))

Start=Instr(Start,T,"http://")

Length=Instr(Start,T,chr(34)+","+chr(34))-Start

PicURL=Mid(T,Start,Length)

'document.write "<img src='"&PicURL&"'>"

document.write "<a href=http://search.tencent.com/cgi-bin/friend/user_show_info?ln=37146743 target=_blank title=QQ:37146743><img src="&PicURL&" width=16 height=16 border=0></a>"

</script>

<br>

大图标:

<script language=vbscript>

Dim T,Start,Length,PicURL

T=GetURL("http://search.tencent.com/cgi-bin/friend/user_show_info?ln=37146743")

Start=Instr(1,T,"img height=32")

Start=Instr(Start,T,"http://")

Length=Instr(Start,T,chr(34)+" width=32")-Start

PicURL=Mid(T,Start,Length)

'document.write "<img src='"&PicURL&"'>"

document.write "<a href=http://search.tencent.com/cgi-bin/friend/user_show_info?ln=5073937 target=_blank title=QQ:5073937><img src="&PicURL&" width=32 height=32 border=0></a>"

</script>

 

Write a comment

Comments: 0