VirtualCube Applets
Applet Tag
You can include a VirtualCube applet into your web-page using the applet tag shown below.
The applet supports a large number of parameters.
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: "VirtualPocketCube.jar"
- 3x3 cubes: "VirtualRubiksCube.jar", "VirtualRubiksBarrel.jar", "VirtualRubiksCuboctahedron.jar", "VirtualRubiksDiamond.jar"
- 4x4 cubes: "VirtualRevengeCube.jar"
- 5x5 cubes: "VirtualProfessorCube.jar"
- 6x6 cubes: "VirtualCube6.jar" "VirtualVCube6.jar"
- 7x7 cubes: "VirtualCube7.jar", "VirtualVCube7Player.jar"
Since this is a path value, you can prepend a path to this, for example, if your "VirtualRubiksCube.jar" file is stored in the sub-directory "lib" of your codebase, you can write "lib/VirtualRubiksCube.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 VirtualPocketCube.jar, you specify "VirtualPocketCube". |
width |
yes |
Specifies the width of the applet. |
height |
yes |
Specifies the height of the applet. |