You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



HTML tag Object: PARAM Attribute test

OBJECT (PARAM)


This test case tests the <APPLET> tag with its optional <PARAM> tag which provides a method for applets to get input from the HTML file containing an <APPLET> 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 <APPLET> tag.

Test Instructions:

  1. Verify that the samples display correctly for the following test case.
  2. Verify that the java applet is maintained when you minimize/maximize the screen.
  3. Verify that the java applet is maintained when you re-size left & right the screen.
  4. Verify that the java applet is maintained when you re-size top & bottom the screen.
  5. Verify re-draw takes place correctly after maximizing the screen.
  6. Verify reload works.


Test Case: sample java applet with different param values.

Sample 1. "Jitter Text" applet with a set of parameters values:



<object codebase="." classid="java:JitterText.class" width=400 height=80>

    <param name=BGCOLOR value="000000">

    <param name=TEXTCOLOR value="FF0000">

    <param name=TEXT value="OJITesting!">

    <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="." classid="java:JitterText.class" width=450 height=50>

    <param name=BGCOLOR value="000000">

    <param name=TEXTCOLOR value="FF0000">

    <param name=TEXT value="Welcome to Raptor!">

    <param name=SPEED value="300">

</object>

Sample 3. "Jitter Text" applet with no parameters values:



<object codebase="." classid="java:JitterText.class" width=450 height=50>

</object>