The Applet Tag°CODE, CODEBASE, and so on are attributes of the applet tag; they give the browser information about the applet. The only mandatory attributes are CODE, WIDTH, and HEIGHT. APPLET Attributes°CODEBASE = codebaseURL This optional attribute specifies the base URL of the applet. If this attribute is not specified, then the document's URL is used. °ARCHIVE = archiveList This optional attribute describes one or more archives containing classes and other resources that will be preloaded. The classes are loaded using an instance on an AppletClassLoader with the given CODEBASE. °CODE = appletFile This required attribute gives the name of the file that contains the applet's compiled Applet subclass. This file is relative to the base URL of the applet. It cannot be absolute. One of CODE or OBJECT must be present. °ALT = alternateText This optional attribute specifies any text that should be displayed if the browser understands the APPLET tag but cannot run Java technology-based applets. °NAME = appletInstanceName This optional attribute specifies a name for the applet instance, which makes it possible for applets on the same page to find each other. °WIDTH = pixels HEIGHT = pixels These required attributes give the initial width and height of the applet display area, not counting any windows or dialogs that the applet brings up. °ALIGN = alignment This optional attribute specifies the alignment of the applet. The possible values of this attribute are the same as those for the IMG tag: left, right, top, texttop, middle, absmiddle, baseline, bottom, absbottom. °PARAM NAME = appletAttribute1 VALUE = value This tag is the only way to specify an applet-specific attribute. Applets access their attributes with the getParameter() method. ReferencesSUN Microsystems http://java.sun.com |
