You are here: Test Case Description for applets within <object> tag > Test Case #8 for applets within <object>: param
Applets: OBJECT (param)
This test case tests the <object> tag with its optional <param> tag which provides a method for applets to get input from the HTML file containing an <object> tag through the use of applet parameters. In the HTML file that contains the embedded applet, each parameter is indicated by using the <param> tag with its two attributes name and value. The <param> tag goes inside the opening and closing <object> tag.
Test Instructions
- Verify that the samples display correctly for the following test case.
- Verify that the java applet is maintained when you minimize/maximize the screen.
- Verify that the java applet is maintained when you re-size left & right the screen.
- Verify that the java applet is maintained when you re-size top & bottom the screen.
- Verify re-draw takes place correctly after maximizing the screen.
- Verify reload works.
Sample 1. "Jitter Text" applet with a set of parameters values:
<object codebase="." code="JitterText.class" width="400" height="80"> <param name="BGCOLOR" value="000000"> <param name=TEXTCOLOR value="FF0000"> <param name="TEXT" value="JitterText!"> <param name=SPEED value="250"> <param name="RANDOMCOLOR" value="1"> </object>
Sample 2. "Jitter Text" applet with a different set of parameters values:
<object codebase="." data="JitterText.class" width="450" height="50"> <param name="BGCOLOR" value="000000"> <param name="TEXTCOLOR" value="FF0000"> <param name="TEXT" value="Welcome to Mozilla!"> <param name="SPEED" value="250"> <param name="RANDOMCOLOR" value="1"> </object>
Sample 3. "Jitter Text" applet with no parameters values:
<object codebase="." data="JitterText.class" width="450" height="50"></object>