首页 > 代码库 > JavaScript开发之旅(3):判断腾讯QQ是否在线

JavaScript开发之旅(3):判断腾讯QQ是否在线

http://webpresence.qq.com/getonline?Type=1&1617052138: 判断腾讯QQ是否在线接口.

下面是个简单的例子:

<!doctype html><html lang="en"> <head>     <meta charset="UTF-8">     <title></title>     <script>    var online= new Array();    </script>    <script src="http://webpresence.qq.com/getonline?Type=1&1617052138:"></script>	<script type="text/javascript">	if (online[0]==0){	document.write("<a href=http://www.mamicode.com/‘tencent://message/?uin=1617052138&Site=1111&Menu=yes‘>");    }	else{	document.write("<a href=http://www.mamicode.com/‘tencent://message/?uin=1617052138&Site=1111&Menu=yes‘>");    }	</script></head><body></body></html>

 

采集
<style></style><script type="text/javascript" src="http://pubstatic.b0.upaiyun.com/load.js?141473"></script>

JavaScript开发之旅(3):判断腾讯QQ是否在线