Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
You are here: Reference > HTML > tags > param

param element

Browser support:
Specifies a parameter to be passed to an applet, embed, or object element.
Use the param element to specify additional object properties. The properties depend on the embedded application.
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
JavaScript page for this element: param.

Possible members:

Attributes
Events
Styles
id
Sets a unique identifier for the object.
name
Specifies what data is being passed in the value attribute to the object.
type
Specifies the MIME type of the resource referenced by the value attribute. The type attribute can be used only if the value of the valueType attribute is set to 'ref'.
value
Specifies the value of a run-time parameter specified by name.
valueType
Specifies the type of the object that is set with the value attribute.

Example HTML code 1:

This example illustrates the use of the param and object elements to embed a Macromedia Flash Movie. The codeBase attribute of the object tag is missing from this example. You can check the version of the user's Flash player with this attribute in Internet Explorer, and if it does not exist or its version is lower than required, the browser pops up an installation dialog. Unfortunately, the use of the codeBase attribute causes problems in Firefox. See Example 2 for a cross-browser solution or the codeBase attribute for further details.
<object data="flash.swf" type="application/x-shockwave-flash" width="300px" height="200px">
        <!-- If flash player is not installed, pluginurl helps the user to download it in Firefox -->
    <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
    
    <param name="movie" value="flash.swf" />  
    <param name="bgcolor" value="#FFFFE0" />  
    <param name="quality" value="high" />
</object>
Did you find this example helpful? yes no

Example HTML code 2:

This example illustrates the use of the param element with Macromedia Flash Player.
It clearly focuses on cross-browser support only, and it isn’t standards-compliant, but there isn't any standards-compliant cross-browser way to embed a Flash application into a document with Flash Player detection.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="120" 
        codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0">
    <param name="movie" value="flash.swf" />
    <!-- Optional params -->
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="quality" value="high" />
    <!-- END Optional -->
    <embed src="flash.swf" width="300" height="120" play="true" 
        loop="true" quality="high" 
        pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" /> 
</object>
Did you find this example helpful? yes no

Related pages:

External links:

User Contributed Comments

Post Content

Post Content