码迷,mamicode.com
首页 > 编程语言 > 详细

javascript获得客户端IP的又一方法

时间:2016-01-11 12:06:52      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

<script language="JavaScript">
VIH_BackColor = "palegreen";
VIH_ForeColor = "navy";
VIH_FontPix = "16";
VIH_DisplayFormat = "You are visiting from:<br>IP Address: %%IP%%<br>Host: %%HOST%%";
VIH_DisplayOnPage = "yes";
</script>
<script language="JavaScript" src="http://www.hashemian.com/js/visitorIP.js.php"></script>

 

 

<script language="JavaScript">
       VIH_DisplayOnPage = "no";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></script> 
<script language="JavaScript">
       alert("你的IP是:" + VIH_HostIP);
</script>

 

javascript获得客户端IP的又一方法

标签:

原文地址:http://www.cnblogs.com/herd/p/5120521.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!