<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<title>
HTML Test Page
</title>
</head>
<body>
Applet1 will appear below in a Java enabled browser.<br>
<applet
codebase = "."
code = "AppletZip.class"
archive = "class.jar"
name = "TestApplet"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<title>
HTML Test Page
</title>
</head>
<body>
Applet1 will appear below in a Java enabled browser.<br>
<applet
codebase = "."
code = "AppletZip.class"
archive = "class.jar"
name = "TestApplet"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>
</body>
</html>
如果放在服务器上
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<title>
HTML Test Page
</title>
</head>
<body>
Applet1 will appear below in a Java enabled browser.<br>
<applet
codebase = "http://Ed/7/"
code = "AppletZip.class"
archive = "class.jar"
name = "TestApplet"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>
</body>
</html>
表示这个class.jar在服务器下的7/下
在html文件里
<html>
<body>
<APPLET CODE="MouseClickApplet.class" ARCHIVE="MY.JAR" WIDTH=300 HEIGHT=150>
</APPLET>
</body>
</html>所有这些文件都在同一个目录下,但在浏览器里还是没有显示,请问这是到底为什么?