Syntax of embedding Applet in HTML

Applet 可以直接嵌入到 HTML, 语法如下:

<APPLET
    CODE = "name of .class file"
    CODEBASE = "path of the .class file"
    HEIGHT = "maximum height of the applet, in pixels"
    WIDTH = "maximum width of the applet, in pixels"
    VSPASE = "vertical space between the applet and the rest of the HTML, in pixels"
    HSPASE = "horizontal space between the applet and the rest the HTML, in pixels"
    ALIGN = "alignment of the applet with respect to the rest of the Web page"
    ALT = "alternate text to be displayed if the browser does not support applet">
        <PARAM NAME = "paramter_name" VALUE = "value_of_parameter">
        <PARAM NAME = "paramter_name" VALUE = "value_of_parameter">
</APPLET>

将 applet 插入到 JSP 页面可参考本站的 To embed applet to JSP.

后注:最初于2/14/2006 10:11:00 PM发布在 http://blog.csdn.net/caoi/archive/2006/02/14/599038.aspx,现已删除。