mdc.html
来自「java编程的一些Applets例子。值得深入研究一下。」· HTML 代码 · 共 56 行
HTML
56 行
<html>
<head>
<title>asteroids.html</title>
<meta name="GENERATOR" content="Mozilla/2.01Gold (Win32)">
</head>
<body>
<h1 align=center>Asternoids</h1>
<p>
<hr><applet code="aster.class" width=500 height=400><param name=wid value=500><param name=hei value=400></applet>
<hr></p>
<p>Applet name: Asternoids
<br>Applet Source: <a href="aster.java">asternoids.java
<br></a>Import(s): java.util, java.lang, java.awt, java.applet, java.net
<br>Feature(s): text, image, animation, audio, keyboard
<br>Author: <a href="mailto:sigelman@javanet.com">Ben Seigelman</a></p>
<h2>Usage Guide:</h2>
<p>Asternoid! takes two parameters: "wid" and "hei",
which are the width and height of the applet. These should be the same
as the width and height values specified in the HTML file. The game starts
when the user clicks on the applet, and is played with the following keys:</p>
<pre>_________________________________________________
| KEY | Function |
| J | Rotates the player counter-clockwise |
| L | Rotates the player clockwise |
| K | Thrust |
|<space>| Shoot |
| Z | Shield |
|_______|________________________________________|
</pre>
<p>The shield is displayed in the red bar at the top of the applet. The
key recognition is better than the recognition built into java itself.</p>
<p>an example of valid html code:
<br></p>
<pre><HTML><HEAD><TITLE>ASTERNOID!</TITLE></HEAD>
<BODY>
<APPLET CODE=aster WIDTH=400 HEIGHT=400>
<PARAM NAME=wid VALUE=400>
<PARAM NAME=hei VALUE=400>
</APPLET></pre>
<center><p>
<hr><a href="../index.html"><img src="../images/mantoid.gif" alt="Return to index." border=0 height=109 width=109></a></p></center>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?