网页显示qq或msn在线怎么做呢?
用asp怎么实现显示qq或msn在线呢? --------------------编程问答-------------------- 百试搜一下就有了,其实就是一个链接而已,然后你用层定位一下 --------------------编程问答-------------------- 调用 他们的 一个 链接参数 JS --------------------编程问答-------------------- wpa.qq.com这个网站就有详细信息了 --------------------编程问答--------------------<script language="javascript">
<!--
function getFaceImg(QQcode)
{
var Re=new RegExp("^[1-9]{1}\\d $","g");
if (!QQcode||!Re.test(QQcode)) return;
var URL="http://search.tencent.com/cgi-bin/friend/oicq_find?oicq_no=" QQcode;
var http=new ActiveXObject("Microsoft.XMLHTTP");
http.open("GET",URL,false,"","");
http.setRequestHeader("CONTENT-TYPE","text/html; Charset=gb2312");
http.send();
if (http.status!=200) return;
var webStr=http.responseText;
Re=new RegExp("\"(http://img.tencent.com/face/[^\"] )\"","ig");
if (Re.test(webStr))
return "<a href=\"http://search.tencent.com/cgi-bin/friend/user_show_info?ln=" QQcode "\" target=_blank title=\"QQ:" QQcode "\"><img src=\"" RegExp.$1 "\" width=16 height=16 border=0></a>";
http=null;
}
document.write("我的QQ状态:" getFaceImg("你的QQ号"));
//-->
</script>
或者上下面的网址生成一个嵌入 网页中。
传送门 --------------------编程问答-------------------- qq
都有接口的,网页调用接口? --------------------编程问答-------------------- 网上很多代码
QQ:
<a href='tencent://message/?uin=qq号&Site=站点&Menu=yes&t="+Math.random()+"' >QQ在线</a>
补充:.NET技术 , ASP.NET