Year 2000 Countdown Setup

Downloaded from http://javapplets.com

 

Here is how to set up the Year 2000 Countdown applet in 3 easy steps.

1. Upload the file Year2000CD.class into the same directory as the web page that you are going to put the applet on. That is both the page and applet should be in the same place. Advanced users can place the applet in a different directory using the CODEBASE attribute, but we won't get into that here.

2. Configure the parameters. This is the hardest part for most users, so read carefully.

First configure the applet tag to tell the browser which applet to load and how big to make it. The applet tag must include the following:
<APPLET CODE="Year2000CD.class" WIDTH=x HEIGHT=y>
Of course, substitute the width in pixels that you want the applet to be for x, and the height that you want for y. Here the width and height should match the dimensions of your image.

Next, we need to create the actual parameters of the applet. Each parameter has a name and a value. The names are predetermined, the values are up to you. The tag appears as follows:
<PARAM NAME="Some Name" VALUE="Some Value">
Of course, that parameter will get you no where with this applet. Here is the list of parameters with the types of values that you should put in. You will notice that some of them have default values. Any parameter with a default value can be omitted if you are happy with the default value.

What we call the parameter (NAME) What we mean (VALUE)
FONT NAME The Font you want to use. Choose from: Helvetica, Courier, TimesRoman, Symbol or Dialog. Defaults to Helvetica.
FONT STYLE The style you want the font to appear as. Defaults to Plain. You can use Plain, Italic, Bold or BoldItalic.
FONT SIZE The point size of the font to use. Defaults to 12.
SETUP Putting any value in this parameter will put the applet in setup mode. This allows you to easily position the countdown without having to guess the x and y positions. Load the applet in setup mode and move the mouse until the countdown is in the place you want it to be. The x and y positions will be shown in the status bar. Remove this parameter entirely to take it out of setup mode.
XPOS This is the position measured from the left of the applet in pixels of the first number in the countdown. Defaults to 0.
YPOS This is the position measured from the top of the applet of the baseline of the text. Defaults to 0.
BACKGROUND IMAGE This is the URL, relative to the document that contains the applet, of the image to be used as the background. If you have taken our advice and put the applet in the same directory as the HTML page, just put the name of the image in this value.
FGCOLOR This is the foreground, or text, color of the applet, specified in hexadecimal just as with an HTML page. Example: Black = 000000 . Defaults to Yellow.


Once you have created all of your parameters, just add a closing HTML tag, </APPLET> to tell the browser you are done.


When you are finished, here is what it might look like:

	<APPLET CODE="Year2000CD.class" WIDTH=160 HEIGHT=121>
		<PARAM NAME="BACKGROUND IMAGE" VALUE="countdown.gif">
		<PARAM NAME="XPOS" VALUE=22>
		<PARAM NAME="YPOS" VALUE=65>
		<PARAM NAME="FGCOLOR" VALUE="FFFF00">
		<PARAM NAME="FONT NAME" VALUE="HELVETICA">
		<PARAM NAME="FONT STYLE" VALUE="PLAIN">
		<PARAM NAME="FONT SIZE" VALUE="20">
	</APPLET>

3. Place this code into your HTML file and give it a try! Please let us know if this configuration page was helpful to you or if you have any suggestions as to how to improve it.

 

Copyright 1999 Black Lab Design. All Rights Reserved. Javapplets.com is not affiliated with Sun Microsystems, Inc. Java and all Java-based trademarks are registered trademarks of Sun Microsystems, Inc. in the United States and in other countries. The www.sun.com Weblink Logo is a trademark or registered trademark of Sun Microsystems, Inc. in the U.S. and other countries. All applets are provided without any warranty, express or implied. Use of applets is limited to evaluation on pages not made available to more than 5 users. To derive full benefit from this website you must use a Java enabled browser such as Microsoft Internet Explorer 3.0+ or Netscape Navigator 2.0+. Please let us know if you run into any problems using this site or our applets. We want to know!