網頁

2015年3月12日 星期四

第二週 - 作業

程式設計工藝大師
作業1

程式代碼來源: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, Eric_He.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>






作業2
程式來源:http://docs.oracle.com/javase/tutorial/getStarted/cupojava/win32.html
程式代碼:
/**
 * The HelloWorldApp class implements an application that
 * simply prints "Hello World!" to standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}








作業3

cmd代碼: ipconfig


作業4
代碼來源:http://www.hashemian.com/tools/visitor-IP.htm
代碼:
<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>




沒有留言:

張貼留言