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

<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>

 

posted @ 2016-01-11 11:08  西北逍遥  阅读(297)  评论(0编辑  收藏  举报