how to use applets

  Take a look at the following HTML code-

<applet codebase= "javastuff" code="SLC.class" width=100 height=100>
<param name="spring" value="springlogo.gif">
<param name="summer" value="summerlogo.gif">
<param name="fall" value="falllogo.gif">
<param name="winter" value="winterlogo.gif">
</applet>

  The first thing you need to insert an applet is the applet tag. This lets the browser know to put an applet on the page.
  The attributes for the applet tag are codebase, code, height, width.

codebase is the location of the applet. In the example, the applet is located in a directory called "javastuff". If it's in the same directory as the HTML file, don't use this attribute at all.


code is the filename of the applet. In the example, the filename is SLC.class. Don't try to put an address here- that belongs in codebase
height and width do not work the same way as they do with images. Just remember that if the values (in pixles) are not high enough, you won't be able to see all off the applet's output.

  Most applets that you download will have their own special parameters (such as spring). Go to the parameters page to find the ones for the SLC.

Go to download page
Back2Index