<div class="codetitle"> <span><a style="CURSOR: pointer" data="15006" class="copybut" id="copybut15006" onclick="doCopy('code15006')"><u>複製代碼</u></a></span> 代碼如下:</div> <div class="codebody" id="code15006"> <br>//W3C/1. Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br> <br> <br><title>無標題頁</title> <br><script type="text/javascript"> <BR>function getClientPcName() <BR>{ <BR>var WshShellPcName = new ActiveXObject("WScript.Network"); <BR>var ComputerName = WshShellPcName.ComputerName ; <BR>return ComputerName; <BR>} <br><br><BR>function getClient>} <BR><BR><BR>function getClientIp() <BR> >var WshShellIp = new ActiveXObject("rcbdyctl.Setting"); <BR>var ip = WshShellIp.GetIPAddress; <BR>return ip; <BR>} <BR>alert(getClientPcName() "PientcName() "Pient <ClcName()" 🎜></script> <br> <br> <br> <br><br> </div> <br> 在vs中還可以用,發佈到IIS下面就不行了,請高手提示。