ip 获取 地理位置

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JavaScript API</title>
</head>
<body>
<script type="text/javascript" src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js"></script>
<script>
alert('省:' +  remote_ip_info.province + '--市:' + remote_ip_info.city);
</script>
</body>
</html>
posted on 2012-07-31 22:19  小小池  阅读(282)  评论(0编辑  收藏  举报