js获取当前用户ip和地区信息

<html>   
    <head>
   <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />        
        <script type=text/javascript src=http://fw.qq.com/ipaddress></script>
   <script type=text/javascript>
    document.write("当前ip:"+IPData[0]+",省份:"+IPData[2]+",城市:"+IPData[3]);
   </script>
    </head>   
    <body>
    </body>
</html>

posted on 2010-11-27 08:32  韩显川  阅读(8789)  评论(3编辑  收藏  举报

导航