Начало
Пользовательские детали
Имя узла
(Работает Браузер Netscape с Явой), Если Вы хотели бы получить свои IP-адреса посетителей, используйте этот скрипт
JavaScript Имя узла
<!-- ONE STEP TO INSTALL HOSTNAME: 1. Put the code into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the BODY of your HTML document --> <BODY> <SCRIPT LANGUAGE="JavaScript"> <! > <! > <!-- Begin netscapeTest = parseInt(navigator.appVersion) explorerTest = navigator.appName.indexOf("Microsoft") + 1 function netscapeThree() { if (navigator.javaEnabled()) { userDomain = java.net.InetAddress.getLocalHostName() txt = "I bet your hostname is " + (userDomain.toString()) + " !"; } else { txt = "You are browsing without Java enabled and therefore I can\'t find out what your hostname is."; } } function netscapeFour() { if (navigator.javaEnabled()) { baseAddress = java.net.InetAddress.getLocalHost() userDomain = baseAddress.getHostName() txt = "I bet your hostname is " + (userDomain.toString()) + " !"; } else { txt = "You are browsing without Java enabled and therefore I can\'t find out what your hostname is."; } } if ((explorerTest == "0") && (netscapeTest == "3")) { netscapeThree() } else if ((explorerTest == "0") && (netscapeTest == "4")) { netscapeFour() } else { txt = "It appears you are using Internet Explorer - and we can not find your hostname in that browser." } alert(txt) // End --> </SCRIPT> <!-- Script Size: 1.20 KB -->