腾讯的ip接口 方便获取当前用户的ip地理位置
腾讯的ip接口地址:http://fw.qq.com/ipaddress 显IP代码 全部调用 实现代码如下: document.write(IPData.join(‘ ‘)); 效果:xxx.xxx.xxx.xxx 某某省 某某市 只调用地理位置 实现代码如下: document.writ
腾讯的ip接口地址:http://fw.qq.com/ipaddress 显IP代码 全部调用 实现代码如下: document.write(IPData.join(‘ ‘)); 效果:xxx.xxx.xxx.xxx 某某省 某某市 只调用地理位置 实现代码如下: document.writ
实现代码如下: function get_ip_place() { $ip=file_get_contents("http://fw.qq.com/ipaddress"); $ip=str_replace('"',' ',$ip); $ip2=explode("(",$ip); $a=substr(
首先引入JavaScript API文件 此API提供的接口共有6个,geoip_country_code(){国家代码},geoip_country_ name(){国家名称},geoip_city() {城市名称},geoip_region(){地区代码},geoip_latitude(){经
腾讯的接口是 ,返回数组 http://fw.qq.com/ipaddress 返回值 var IPData = new Array("61.135.152.194","","北京市",""); 新浪的接口 : http://int.dpool.sina.com.cn/iplookup/iplook
1. Mapeed.AddressChooser (演示地址)Mapeed.AddressChooser 是一个JavaScript脚本, 用来创建地址表单和地图结合的特效。当在地址表单中选择和输入地址时,实时在地图上显示地理位置,默认是使用Google Maps,你也可以整合其它地图服务。2. G
msg="请输入你要查询的IP或域名:"IP=Inputbox(msg,"IP地理位置查询小偷") If IP = "" Then IP = "127.0.0.1" url = "http://www.ip.cn/?q="& IP &"" Body = getHTTPPage(url