### CubePlayer Applets

# Applet Tag

You can include a CubePlayer applet into your web-page using the applet tag shown below.

Select a cube:

The applet supports a large number of parameters and provides a JavaScript API.

Description of the applet tag:

Attribute | Required | Description
--- | --- | ---
id | no | You only need to specify an id, if you want to access the applet from JavaScript. I used the value "theApplet" here, but you can use any id that suits you.
mayscript | yes | With this attribute you give the applet the permission to interact with your web-page. If you omit this attribute, the applet may not function properly.
codebase | no | This attribute tells the browser where to look for the applet files. This is a path value. The default value is ".".
archive | yes | This attribute specifies the name of the applet .jar file. This is a path value. The path is relative to the codebase. Possible values are: 2x2 cubes: "PocketPlayer.jar", "PocketPlayerFlat.jar" 3x3 cubes: "RubikPlayer.jar", "RubikPlayerFlat.jar", "BarrelPlayer.jar", "BarrelPlayerFlat.jar", "CuboctahedronPlayer.jar", "CuboctahedronPlayerFlat.jar", "DiamondPlayer.jar", "DiamondPlayerFlat.jar" 4x4 cubes: "RevengePlayer.jar", "RevengePlayerFlat.jar" 5x5 cubes: "ProfessorPlayer.jar", "ProfessorPlayerFlat.jar" 6x6 cubes: "Cube6Player.jar", "Cube6PlayerFlat.jar", "VCube6Player.jar", "VCube6PlayerFlat.jar" 7x7 cubes: "Cube7Player.jar", "Cube7PlayerFlat.jar", "VCube7Player.jar", "VCube7PlayerFlat.jar" Since this is a path value, you can prepend a path to this, for example, if your "RubikPlayer.jar" file is stored in the sub-directory "lib" of your codebase, you can write "lib/RubikPlayer.jar". Note: Altough you only specify the .jar archive with this parameter, you also have to upload the corresponding .jar.pack.gz archive to your web-server.
code | yes | This applet specifies the name of the Java class. This is the same name as the .jar file, but without the .jar suffix. For example, if you use PocketPlayerFlat.jar, you specify "PocketPlayerFlat".
width | yes | Specifies the width of the applet.
height | yes | Specifies the height of the applet.