威尼斯赌博游戏

JS 显示当前访问的IP地址和所属地市

来源: www.luyouqiwo.com| 2017-12-16 01:58
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> 
<center>
<H1 >
<font id="ip" size="5"></font>
</H1>
</center> 
<script type="text/javascript">
(function ip() {
var str=returnCitySN["cip"]+','+returnCitySN["cname"];
var _result=document.getElementById("ip");
_result.innerHTML = str;
})();
</script>

<script language="javascript" type="text/javascript" src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js
"></script>
<script type="text/javascript">
document.write(remote_ip_info['province'],".");//省·
document.write(remote_ip_info['city']);//市
</script>

猜你喜欢
推荐
随机推荐
相关文档
Top
Baidu