Applet: uTestResetButton1

Description:
The uTestResetButton1 applet is an applet that allows users to reset their entire test. That is, when a user presses this "Reset" button, all answers are cleared and the test time/counters are reset back to zero.

An optional "link" parameter allows this applet to be used as a "Start Test" button by linking users to the first page of the test. If the "link" parameter is not used, then a simple pop-up window will be displayed when this "Reset" button is pressed.

Note: This applet will not automatically update the display of the applets on the current page. That is, users won't see answers on the current page get "erased" until they move to another page.

Example:

Below is an example of what this applet will look like:



And here is the HTML used to generate the applet:

<APPLET CODE="uTestResetButton2.class" CODEBASE="../classes/" WIDTH=170 HEIGHT=75>
<PARAM NAME="image"                       VALUE="example_reset_button.gif">
<PARAM NAME="normal_color"                VALUE="#004200">
<PARAM NAME="highlight_color"             VALUE="#00FF00">
</APPLET>


Parameters:

Name Description
codebase This parameter is actually part of the <APPLET> tag and therefore should be specified on the first line of the Applet (see example). It allows you to specify the location of this applet's class file. The recommended value is "../classes/". See codebase for more information.
image This parameter allows you to specify the image that will be displayed as the Reset button (ie. what this applet will look like). Note that due to the security restrictions built into Internet Explorer, when loading any image by an applet, the image must be located in the same directory as the applet's class file. So be sure that the image that you specify here is located in your "classes" directory.
normal_color This parameter allows you to specify the color of the border around the image when the mouse cursor IS NOT over it. The value of this parameter can be specified as any RGB value such as "#FF0000" or as one of the keyword colors such as "red". See color parameter format for more information on colors.
highlight_color This parameter allows you to specify the color of the border around the image when the mouse cursor IS over it. The value of this parameter can be specified as any RGB value such as "#0000FF" or as one of the keyword colors such as "blue". See color parameter format for more information on colors.
link If desired, this parameter allows you to link users to another HTML page when the reset button is pressed. To link users to another HTML page, simply specify the HTML file name or the URL that you want to link users to. If you do not want link users to another page when the reset button is pressed, then leave this parameter blank or set it to "NONE".
target If this applet is configured to link users to another page when the reset button is pressed, then this parameter allows you to specify the "target" window/frame for the link. The default value of this parameter is "_top".