close
參考:http://taiwantc.com/js/js_tut_a1.htm
<html>
<head>
<title> The First Example: Hello, World </title>
</head>
<body>
<h2> This line is HTML </h2>
<script language="JavaScript">
<!--
document.write("Hello, World.This sentence is written using JavaScript.");
// Text on the right of 2 slashes is comment
/* This is comment
that occur more than 1 line
*/
//-->
</script>
<noscript>
Sorry, but your browser doesn't run JavaScript.
</noscript>
<h2> This line is HTML </h2>
</body>
</html>
=============================================================================
參考:http://xml-nchu.blogspot.tw/2012/12/java.html
import java.net.*; public class TestInet1 { public static void main(String argv[]) { try { InetAddress myip = InetAddress.getLocalHost(); System.out.println(myip.getHostName()); System.out.println(myip.getHostAddress()); } catch (UnknownHostException e) { System.out.println("Error: unable to resolve localhost"); } } }
==============================================================
參考:
http://usefulinfo.pixnet.net/blog/post/32386315-%E3%80%90%E7%A8%8B%E5%BC%8F%EF%BC%8F%E7%B6%B2%E9%A0%81%E8%A8%AD%E8%A8%88%E3%80%91%E9%A1%AF%E7%A4%BA%EF%BC%8F%E6%8A%93%E5%8F%96%E7%80%8F%E8%A6%BD%E8%80%85ip%E4%BD%8D%E5%9D%80
<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://scripts.hashemian.com/js/visitorIPHOST.js.php">
</script>
全站熱搜
留言列表