用asp实现QQ在线查询
2007-10-26 17:21
239 查看
<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("44723461"));
//-->
</script>
演示:http://www.2881.com/qq/
<!--
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("44723461"));
//-->
</script>
演示:http://www.2881.com/qq/
相关文章推荐
- 基于ASP实现QQ在线查询功能
- 精彩:用Asp实现QQ在线查询功能
- [导入]实用篇:用asp实现QQ在线查询
- 用Asp实现QQ在线查询功能
- 用Asp实现QQ在线查询
- 用Asp实现QQ在线查询
- 用js实现QQ在线查询功能
- 使用gsoap实现一个简单的 QQ在线状态查询程序
- java swing调用webservice实现qq在线查询是否在线
- python实现查询qq是否在线
- EF Core使用SQL调用返回其他类型的查询 ASP.NET Core 2.0 使用NLog实现日志记录 CSS 3D transforms cSharp:use Activator.CreateInstance with an Interface? SqlHelper DBHelper C# Thread.Abort方法真的让线程停止了吗? 注意!你的Thread.Abort方法真
- Asp.net实现在线人数统计功能代码实例
- ASP.NET网站权限设计实现——套用JQuery EasyUI列表显示数据、分页、查询
- javascript 异步页面查询实现代码(asp.net)
- Asp.Net实现在线人数统计
- ASP利用Google实现在线翻译功能
- ASP.NET中单字段精确查询的实现
- asp查询xml的代码,实现了无刷新、模糊查询功能