HOME / ORDER THE BOOK / OTHER BOOKS / THANKS / PREVIOUS HOUR / NEXT HOUR |
Hour 4: The Frog Appletthe Frog applet
If your Web browser can handle Java applets, there should be an animated frog taking a snack break above this paragraph. The following HTML tags are used to put the applet on this page: <APPLET CODE="Frog.class" WIDTH=500 HEIGHT=60> <PARAM NAME="bgcolor" VALUE="#CCFFFF"> </APPLET> As you can see, this applet takes only one parameter, BGCOLOR. This is used to define the background color of the applet, which in this example matches the background of the Web page. The value #CCFFFF is a series of three hexadecimal numbers that determine how much red, green, and blue are in the background color. The Frog applet was created by Karl Hörnell, one of the most innovative game programmers using Java on the World Wide Web. Hörnell, a Swedish computing student, makes the source code of many Java programs available for use (including the code and image used by his Frog applet). For more details, visit his Java on the Brain Web site. Before hopping over there, though, you should continue to the next applet. |
HOME / ORDER THE BOOK / OTHER BOOKS / THANKS / PREVIOUS HOUR / NEXT HOUR |