<html>
<head>
<title></title>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/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>

 

posted on 2009-12-11 16:56  kuibono  阅读(187)  评论(0编辑  收藏  举报

爱造人 | 快播影视