【问题标题】:How to display an IP address in HTA如何在 HTA 中显示 IP 地址
【发布时间】:2018-04-18 02:35:16
【问题描述】:

在下面回答以分享我最近学到的一些信息。随时为它做出贡献

有时这只是派上用场。我是初学者,所以很高兴知道一些更基本的功能

【问题讨论】:

  • 这个问题与 .hta 无关。

标签: php html ip


【解决方案1】:

DisplayMyIP.hta

<!DOCTYPE html>
<SCRIPT LANGUAGE="VBScript">
Sub Window_onLoad
    WindowLeft = (window.screen.availWidth - 350)  
WindowTop  = (window.screen.availHeight - 130)
window.moveTo WindowLeft, WindowTop
    window.resizeTo 386,144
End Sub 
</SCRIPT>
<style>
html,
body,
iframe {
width: 95%;
height: 80%;
}
</style>
<body>
<iframe src="http://net-paste.com/ip.php" style="border:1px blue solid;" 
name="frame1" scrolling="auto" frameborder="yes" align="center" height = "100%" 
width = "100%">
</iframe>
 </body>

(你不需要这个,因为它已经在上面的脚本中链接了) 这里是ip.php

 <?php
 $ipaddress = $_SERVER['REMOTE_ADDR'];
 echo "<h4> Your IP address is:<code> $ipaddress </code> </h4>";
 ?>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-03-11
    • 1970-01-01
    • 2012-06-27
    • 2012-06-21
    • 1970-01-01
    • 2013-05-21
    • 1970-01-01
    • 2021-02-04
    相关资源
    最近更新 更多