浏览器中显示JApplet(可解决引入Swing包的问题))
发表于:2007-07-04来源:作者:点击数:
标签:
//把JApplet1换成你自己的JApplet名就可以了,代码包含了自动下载 所须插件的功能 //JApplet.html htmlheadtitleJApplet1/title/headhr OBJECT classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 width=100 height=50 align=baselinecodebase=http://java.s
//把JApplet1换成你自己的JApplet名就可以了,代码包含了自动
下载所须插件的功能
//JApplet.html
<html><head><title>JApplet1</title></head><hr>
<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="100" height="50" align="baseline" codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">
<PARAM NAME="code" VALUE="JApplet1.class">
<PARAM NAME="codebase" VALUE=".">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
<COMMENT>
<EMBED type=
"application/x-java-applet;version=1.2.2"
width="200" height="200" align="baseline"
code="JApplet1.class" codebase="."
pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html">
<NOEMBED>
</COMMENT>
No Java 2 support for APPLET!!
</NOEMBED>
</EMBED>
</OBJECT>
<hr></body></html>
原文转自:http://www.ltesting.net