直接输出访客所在国家、省份、城市
<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>
文章来源:微笔记_博客