调用了搜狐的ip地址库。
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <font id="ip" size="5"></font> <script type="text/javascript"> (function ip() { var str=returnCitySN["cip"]+','+returnCitySN["cname"]; var _result=document.getElementById("ip"); _result.innerHTML = str; })(); </script>