[IT科技] 在页面里嵌入Applet

发表于 @ 2009-6-8 18:00:26

  • CODE: the applet to run
  • CODEBASE: path to the applet class
  • WIDTH: width of the applet
  • HEIGHT: height of the applet
  • ALIGN: alignment of applet to surrounding text
  • VSPACE: vertical space between applet and surrounding text
  • HSPACE: horizontal space between applet and surrounding text
  • BORDER: empty space surrounding the applet
  • NAME: name of applet for reference by other applets
  • ARCHIVE: a compressed collection of applet components
  • MAYSCRIPT: If Java can use JavaScript
<APPLET ...> puts an applet in your page. In its simplest use, <APPLET ...> requires the use of CODE (to tell what applet file to load), WIDTH (to tell how wide the applet should be), and HEIGHT (to tell how tall the applet should be).

this codeproduces this
<APPLET CODE="MyApplet.class" WIDTH=100 HEIGHT=100>
<PARAM NAME=TEXT VALUE="Hi There">
<P>Hi There<P>
</APPLET>
Hi There

The contents of <APPLET ...> is either the <PARAM ...> tag, or information which is ignored by browsers which understand <APPLET ...>. This method of ignoring the contents allows you to put in text for browsers which don't understand <APPLET ...>.



Copyright © 2009 老紫竹
网站地图 | 最新文章 | 未读文章 | 24小时内热点文章 |津ICP备09000085号