JavaScript html js java into the landing page displays the current user's IP areas, check IP network interface

2009-05-24  来源:本站原创  分类:AJAX  人气:578 

Js interface with access to query the network ip address

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
 </HEAD>

 <BODY>
<!--  Tip  -->
<script src="http://whois.pconline.com.cn/ip.js"></script>
<a href="javascript:alertIp('202.96.209.6');">202.96.209.6</a>
<!--  Display  -->
<a href="javascript:labelIp('showIpInfo','202.96.209.6');">202.96.209.6</a>  Location information  :<span></span>

 </BODY>
</HTML>

Jsp query interface with access to the network ip address

public class Test {

    public static void main(String[] args){
        try{
            String arg="202.96.209.6";
            URL url=new URL("http://whois.pconline.com.cn/ip.jsp?ip="+arg);
            HttpURLConnection connect=(HttpURLConnection)url.openConnection();
            InputStream is = connect.getInputStream();
            ByteArrayOutputStream outStream = new ByteArrayOutputStream();
            byte[] buff = new byte[256];
            int rc = 0;
            while ( (rc = is.read(buff, 0, 256)) > 0) {
                outStream.write(buff, 0, rc);
            }
            byte[] b = outStream.toByteArray();
            // Shut down
            outStream.close();
            is.close();
            connect.disconnect();
            System.out.println(new String(b));
        }catch(Exception e){
            e.printStackTrace();
        }
    }

}

Provide the network interface address: http://whois.pconline.com.cn/

相关文章
  • JavaScript html js java into the landing page displays the current user's IP areas, check IP network interface 2009-05-24

    Js interface with access to query the network ip address <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="E

  • Simple landing page and page jump 2010-11-12

    First make a basic landing page In. H file used to write the interfaces and methods @interface _1_11LoginViewController : UIViewController { IBOutlet UITextField *namefield; IBOutlet UITextField *passwordfield; } @property (nonatomic,retain) UITextFi

  • Java Network Programming (11): get network interface to use the letter NetworkInterface class 2010-09-20

    Starting from JDK1.4, Java provides a NetworkInterface class. This class can get the machine all of the physical network interfaces and virtual machine software such as use of the machine's physical network interface to create a logical network inter

  • Implemented in Javascript into JS file named prefix + 2011-01-10

    Javascript unlike Java, does not import keyword (said Javascript2.0 will join the Import and namespace). Many others in the online search function of the code written by Import are usually inserted directly in the HTML, script elements to achieve. Sy

  • Javascript in order of execution when the page loads 2010-06-24

    1, embedded in the HTML method Javasript Javascript code directly on the markers <script> and </ script> between Marked by the src attribute <script /> develop external js file On the event handler, for example: <p"alert(' I was

  • js code to refresh the page 2010-10-16

    First look at a simple example: The following were named to three pages frame.html, top.html, bottom.html example to specify what to do. frame.html from top (top.html) under (bottom.html) composed of two pages, the code is as follows: <! DOCTYPE HTML

  • Use JSON (js / java) Summary 2010-12-18

    Use JSON (js / java) Summary Recently did a module in the project to the application of asynchronous ajax to refresh the page. As the query parameters and includes many different types. Such as an array, set, date and so on. So here I am using json t

  • 着陆页优化(Landing Page Optimization)101招-第2章信任和安全 2014-03-10

    随着垃圾邮件.传销和一夜暴富的各种做法,充斥在网络营销中,成为一个令人信赖的领先者,对你的网页大有裨益.期间成功的首要关键在乎关心.在这方面不要大做口惠,因为人们怎么想要比你怎么想更重要. 14. 列出电话号码 通过显示一个电话号码,告诉人们你是正当经营,而且有真人在电线的那一头.对于那些不适应在线交易.但又喜欢你商品的人,这也是一种好的退路. 15. 为有价值的内容扫除障碍 如果你要免费提供点什么,但作为交换,要求得到个人信息的话,那就事先提供一些真正免费的东西,比如你提供材料的一小部分(第一

  • java code for the page 2010-02-09

    Recent studies have crawled pages, and discovered to obtain the page's encoding format, Java implementations is not ready, although there are a csdn Daren wrote an article, with code, unfortunately, I did not find the relevant package, a last resort,

  • JavaScript example: js regular tasks, from time to time to call the function (which can be asynchronous) 2009-07-19

    The code is very simple, one glance to understand, so do not write comments in this note thinking + js mission control can also be carried out from time to time, and unlike regular Spring configuration as tasks, you can simply write js, but this can

  • Web Analytics Web Analytics Basics Entry Page (entry page) and the Landing Page (landing page) 2010-06-23

    In fact, this distinction between the two terms is a long time I have gone away. There are many online information on this aspect of the explanation, but I think there is some abstraction, so, here I give you to elaborate on my understanding, hope th

  • Original: Web Analytics Web Analytics Basics Entry Page (entry page) and the Landing Page (landing page) 2010-06-23

    In fact, this distinction between the two terms is a long time I have gone away. There are many aspects of online information about this explanation, but I think there is some abstract, so here I give you to elaborate on my understanding, hope that w

  • Original: Web Analytics Web Analytics Basics Entry Page (entry page), and Landing Page (landing page) 2010-06-23

    In fact, this distinction between the two terms is a long time I have gone away. There are many online information on this aspect of the explanation, but I think there is some abstraction, so, here I give you to elaborate on my understanding, hope th

  • Originality: Web Analytics Web Analytics Basics Entry Page (entry page), and Landing Page (landing page) 2010-06-23

    In fact, this distinction between the two terms is a long time I have gone away. There are many aspects of online information about this explanation, but I think there is some abstract, so here I give you to elaborate on my understanding, hope that w

  • 着陆页优化(Landing Page Optimization)101招-第8章测试,测试,测试 2013-10-12

    许多营销部门只依靠直觉本能和个人看法.准备好把它扔出窗外,开始实现真正的洞察,去看看什么管用什么没用. 52. 用A/B测试来验证你的决定 这能让你进行简单的比较广告研究,使你得到多种可替换的设计和信息,并看到哪个才最好.有测试的基础架构很重要,能评估你的成功. 53. 测试主要的图片或照片 大多数营销广告都针对特定的细分市场或用户的人口统计特征.因此,尝试用不同的图像表现多种情感响应,是个好主意.一个微笑快乐的蝇钓老人,会唤起快乐的晚年,而有些人会被常见的股票图吓跑. 54. 主要信息 对你的

  • 着陆页优化(Landing Page Optimization)101招-第9章:公司里的招数 2014-03-13

    怎样成长为网络营销高手. 60. 成为你公司里的着陆页专家 如果你遵循这份列表里的指南,并能准确地汇报你的结果,那就将会看到你成了改进营销ROI的那个人. 61. 不要自鸣得意 以为你知道一切,以为你的着陆页永远正确,是幼稚的想法.保持谦卑的态度去测试.验证和实验,是成为高手的最佳道路.我们之所以列出了101招,正说明这样一个看似简单的概念,仍相当复杂. (原帖见unbounce上的"101 Landing Page Optimization Tips")

  • Nginx + Node.js + Java 的软件栈部署实践 起 2014-10-05

    关于前后端分享的思考,我们已经有五篇文章阐述思路与设计.本文介绍淘宝网收藏夹将 Node.js 引入传统技术栈的具体实践. 淘宝网线上应用的传统软件栈结构为 Nginx + Velocity + Java,即: 在这个体系中,Nginx 将请求转发给 Java 应用,后者处理完事务,再将数据用 Velocity 模板渲染成最终的页面. 引入 Node.js 之后,我们势必要面临以下几个问题: 技术栈的拓扑结构该如何设计,部署方式该如何选择,才算是科学合理? 项目完成后,该如何切分流量,对运维来说

  • 基于NodeJS的前后端分离的思考与实践(六)Nginx + Node.js + Java 的软件栈部署实践 2014-12-03

    关于前后端分享的思考,我们已经有五篇文章阐述思路与设计.本文介绍淘宝网收藏夹将 Node.js 引入传统技术栈的具体实践. 淘宝网线上应用的传统软件栈结构为 Nginx + Velocity + Java,即: 在这个体系中,Nginx 将请求转发给 Java 应用,后者处理完事务,再将数据用 Velocity 模板渲染成最终的页面. 引入 Node.js 之后,我们势必要面临以下几个问题: 技术栈的拓扑结构该如何设计,部署方式该如何选择,才算是科学合理?项目完成后,该如何切分流量,对运维来说才

  • 着陆页优化(LPO, Landing Page Optimization)中的数据分析 2015-04-06

    原文原图见MarketingSherpa的"Marketing Research Chart: Top data analysis challenges for landing page optimization",大意是: 着陆页优化(LPO, Landing Page Optimization)中的数据分析,单位:% 非常重要 有点重要 无关紧要 把网站分析与线下交易联系起来 46% 39% 15% 延迟(从访问到转化的关联) 40% 44% 16% 创建有意义的访客细分 39%

  • 12步骤的着陆页修复程序[landing page三图之三] 2013-12-09

    12步骤的着陆页修复程序:优化你的营销漏斗,以获得更高的转化. 英文原图原文见"The 12-Step Landing Page Rehab Program [Infographic]". 再说明一次:它山之石,可以攻玉,可以毁玉.