Example HTML Code for Player

The following is a sample of an applet inserted into an HTML page:


<!--applet starts here---------------------------- -->

           <APPLET

                CODEBASE=".."

                CODE="hm.class" 

                NAME="HotMedia"

                WIDTH=239

                HEIGHT=50>

           <PARAM NAME="mvrfile" VALUE="data/sample.mvr">

           <PARAM NAME="T1URL" VALUE = "http://www.xyz.com###_self">

           <PARAM NAME="ShowALink" VALUE = "n">

           </APPLET>

<!--applet ends here----------------------------- -->





Codebase

The CODEBASE tag describes the location of the directory that contains the class files. This can be expressed in either of two ways:

  1. As the location of the class files relative to the HTML (if the HTML is on the same server as the class files) or


  2. As the absolute URL of the class files directory. (This can be used when the HTML and class files are on the same or different servers.)

Code

This should always be CODE="hm.class".

Name

This attribute specifies a name for the applet instance.

Width

This specifies the initial width of the applet's display area.

Height

This specifies the initial height of the applet's display area.


"mvrfile" Value (HTML applet tag)

This is the path and name of the HotMedia file relative to the directory in CODEBASE.

If the directory to which CODEBASE points, or the specification of CODE or Value is incorrect, the not found error may occur.

 

"ShowALink" Value (HTML applet tag)

This value set to "no" suppresses the display of the rectangle over a hot link region.

 

"T1URL" Value (HTML applet tag)

See Tier Transitions for an explanation of the T1URL and T2URL parameters.

 

See HTML and Java Directory Help in the Tutorial for documentation on how to relate the applet tag to the class structure.