方法在这里,自己改
http://community.csdn.net/Expert/topic/3308/3308572.xml?temp=.2012598

解决方案 »

  1.   

    感谢 lovebanyi 提供的一种方法:
    -----------------------
    <script language="javascript">
    xml = new ActiveXObject("Microsoft.XMLHTTP");
    xml.open("GET","http://ipseeker.cn/",false);
    xml.send();
    kk=xml.ResponseText;
    i=kk.indexOf("官方数据查询");
    document.write("风云查询你的IP是:")
    document.write(kk.substring(i+10,i+30));
    </script>----------------------
    这方法好,就是有个限制,网站ipseeker.cn必须正常使用不知道有没有更好的方法呢?