JavaScript EditorDebugger script     Dhtml css 



Team LiB
Previous Section Next Section

Adding Java Applets

Java applets are another good way to spice up your page. A Java applet is a software program that is actually downloaded and run on your computer. Many kinds of Java applets are available on the Web, from relatively simple Java animations to more sophisticated full-feature applications.

BUZZ WORD 

A Java applet is a small program (thus the word "applet") created in the Java programming language that can be downloaded with a Web page and executed by any Java-enabled browser. All current Web browsers support running Java applets.

Generally, the source of the Java applet should provide you with the HTML code required to insert the applet in your page, as well as all the files and folders that compose the applet. In many cases, you can just copy the HTML code for the applet and then paste it into your page, rather than having to retype it. Here's an example of doing that:

  1. View the applet's page source. In either Internet Explorer or Netscape Navigator, just right-click on the applet's Web page, and then click on View Source.

  2. Highlight the applet code (everything starting with <applet> and ending with </applet>) and press Ctrl+C to copy the code. Use Ctrl+V to paste it into the HTML file.

  3. You might need to edit the code slightly. For instance, if you are placing all the Java applet files in the same folder as the applet's HTML file, delete any "codebase" attribute values included in the APPLET element.

Here are some Web sites where you can find Java applets:

You should be aware of performance and compatibility issues when using Java applets in Web pages. Java applets can increase the amount of time it takes your page to download and display. Visitors using browsers that don't support Java or who have Java turned off cannot see your applet. Also, Microsoft no longer provides its own Java Virtual Machine (JVM) in its latest browser versions, but requires that users download Sun Microsystems' JVM if they want support for Java in their browser. For that reason, if you use Java applets, you might also want to include links to where a JVM can be downloaded:


Team LiB
Previous Section Next Section


JavaScript EditorDebugger script     Dhtml css