中国的第一次革命:怎样用java的Applet可以在网页上嵌入小程序?谢谢了

来源:百度文库 编辑:中科新闻网 时间:2024/04/28 13:51:44

假如你写了一个Applet小程序名为MyApplet.java
编译后为MyApplet.class
你需写一个htm文件:
<html>
<applet code="MyApplet.class" width=500 hight=500>
</applet>
</html>
然后用IE浏览该htm文件,就可以了

Code=这里填applet的class

<applet code=Animator.class width=460 height=160>
<param name=imagesource value="images/Beans">
<param name=backgroundcolor value="0xc0c0c0">
<param name=endimage value=10>
<param name=pause value=200>
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
Your browser is completely ignoring the <APPLET> tag!
</applet>

applet code=“文件.class”
就OK