![]() |
![]() ![]() ![]() ![]() ![]() Web Rings Credits ![]() Critique Sign In Guestbook ![]() Get your FREE web site! |
<Java Applets> |
||
The above marquee is a Java Applet. Here is how to put one on your page.
<APPLET CODEBASE="./applets" CODE="Marquee.class" WIDTH=400 HEIGHT=40>
We start off with the <applet> tag. There are three mandatory attributes for the <applet> tag.
They are CODE, WIDTH and HEIGHT. CODE identifies the source file name of the actual Java applet. Applets always have the class extension so this may be left off of the CODE attribute.
HEIGHT and WIDTH are the height and width of the applet in pixels.The other attribute in the <APPLET> tag is CODEBASE. It tells the browser where the applet is located. If CODEBASE isn't defined then the applet must be in the same directory as the HTML file. Other attributes are ALIGN, ALT, HSPACE, VSPACE, and NAME. ALIGN works the same as it does with images. ALT provides alternate text that is displayed when the browser has not loaded the applet yet or cannot display the applet. This should not be confused with alternate HTML, which I will discuss below. ALT text is only displayed by browsers which ARE Java enabled. HSPACE and VSPACE work the same as with images. NAME specifies a symbolic name for the applet. It is only used when applets on a page communicate with each other. The other tag associated with Java applets is the <PARAM> tag. It's purpose is to pass operating information from the HTML page to the applet. Each applet is writen by a different programmer and therefor requires different parameters to be defined before the applet will run. The attributes for the <PARAM> tag are NAME and VALUE. Alternate HTML is HTML which you want shown if the viewers browser DOES NOT support Java. It goes between the last <PARAM> tag and the closing </APPLET> tag, and may be anything supported by standard HTML. Want to find some applets to download? ![]() ![]() ![]() |
|||
Copyright © 1997, 1998 by Jim Meeker | |||
E-mail: jim314@oocities.com
ICQ: 724480 Last Updated on: 12/28/97 05:38:33 CST |