建站软件 优化软件 编程软件 网页辅助 站群程序 网站程序 图像处理 资源教程 字体下载 推荐软件


您的位置:首页 > javascript学习 > 怎么获取网站Alexa排名的代码

怎么获取网站Alexa排名的代码

时间:2016-08-30 12:05:00  来源:免费模板网 作者:风雪 阅读次数 tags代码网站

有些开源的代码,直接应用js就可以获取网站的Alexa的排名,那么通过代码怎么实现呢



<html>
<head>
<title></title>
<script type="text/javascript" src="http://jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(function(){
$("#siteName").blur(function(){
$.ajax({
type: "GET",
url: "http://data.alexa.com/data/?cli=10&dat=snba&ver=7.0&url="+$("#siteName").val(),
dataType: "xml",
success: function(xml)
{
$("#count").text($(xml).find("ALEXA SD POPULARITY").attr("TEXT"));
}
})
});
});
</script>
</head>
<body>
<input type="text" id="siteName" />
<span id="count"></span>
</body>
</html> 

本文地址:https://www.freemoban.com/javascript/2016/0830/2696.html

猜你喜欢
栏目推荐
模板推荐

Copyright:www.freemoban.com 免费模板网 All Rights Reserved 网站备案:辽ICP备19014872号-2   辽公网安备 21010602000376号  辽公网安备:42900402000182号

免责声明:本站部分资源来自互联网收集,版权归原创者所有,如果侵犯了你的权益,我们会及时删除侵权内容,联系QQ:1615187561 谢谢合作!