Home > Web Front-end > HTML Tutorial > Detailed explanation of object tag parameters in HTML

Detailed explanation of object tag parameters in HTML

黄舟
Release: 2017-06-30 11:20:48
Original
2054 people have browsed it

Detailed explanation of html object tag parameters

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="580" height="110">
<param name="_cx" value="10372">
<param name="_cy" value="2355">
<param name="FlashVars" value="-1">
<param name="Movie" value="swf.swf">
<param name="Src" value="1.swf">
<param name="WMode" value="Transparent">
<param name="Play" value="-1">
<param name="Loop" value="-1">
<param name="Quality" value="High">
<param name="SAlign" value>
<param name="Menu" value="0">
<param name="Base" value>
<param name="AllowScriptAccess" value="always">
<param name="Scale" value="ShowAll">
<param name="DeviceFont" value="0">
<param name="EmbedMovie" value="0">
<param name="BGColor" value>
<param name="SWRemote" value>
<embed src="1.swf" width="580" height="110" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" 
type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed>
</object>
Copy after login

Parameters and Attributes

The following tag attributes and parameters describe the HTML code created by the "Publish" command. You can refer to this list when writing your own HTML for displaying Flash content. Unless otherwise stated, all entries apply to both object tags and embed tags. Optional entries are also listed here. Internet Explorer recognizes the parameters for the object tag, and Netscape recognizes the parameters for the embed tag. Attributes can be used in both object and embed tags. When customizing a template, the template variables listed here can be substituted for the corresponding values. See Customizing HTML post templates.

Note: The properties and parameters listed in this section are intentionally shown in lowercase letters to comply with XHTML standards.

devicefont attribute/parameter

Value: true | false
Template variable: $DE
Description:
(optional) For "Device Font" option not selected A static text object that specifies whether to still use the device font for drawing (if the required font is provided by the operating system).

src attribute

Value: movieName.swf
Template variable: $MO
Description: Specify the name of the SWF file to be loaded. Applies to embed only.

movie parameter

Value: movieName.swf
Template variable: $MO
Description: Specify the name of the SWF file to be loaded. Applies to object only.

classid attribute

Value: clsid:D27cdb6e-ae6d-11cf-96b8-444553540000
Description: Identifies the browser's ActiveX control. The value entered must be exactly as shown above. Applies to object only.

width attribute

Value: n or n%
Template variable: $WI
Description: Specify the width of the application in pixels or as a percentage of the browser window.

height attribute

Value: n or n%
Template variable: $HE
Description: Specify the height of the application in pixels or as a percentage of the browser window.

Note: Because Flash applications are scalable, their quality will not degrade no matter how large they are played, as long as the aspect ratio remains the same. (For example, the following sizes all have an aspect ratio of 4:3: 640 x 480 pixels, 320 x 240 pixels, and 240 x 180 pixels.)

codebase Attribute

Value: http:/ /active.macromedia.com/flash7/cabs/swflash.cab#version=7,0,0,0

Description: Identify the location of the Flash Player ActiveX control so that the browser can It can be downloaded automatically. The value entered must be exactly as shown above. Applies to object only.

pluginspage attribute

Value: http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash
Description: Identifies the location of the Flash Player plug-in so that Users can download the plug-in if it is not already installed. The value entered must be exactly as shown above. Applies only to embed .

swliveconnect attribute

Value: true | false
Description: (Optional) Specifies whether the browser should start Java when Flash Player is loaded for the first time. If this property is omitted, the default value is false. If you are using both JavaScript and Flash on the same page, Java must be running for the FSCommand() function to work. However, if you are running JavaScript solely for browser detection or for other purposes unrelated to the fscommand() action, you can prevent Java from starting by setting SWLIVECONNECT to false. When not using JavaScript with Flash, you can also force Java to start by explicitly setting the SWLIVECONNECT property to true. Starting Java can significantly increase the time required to start a SWF file, so this flag should be set to true only when necessary. Applies to embed only.

Use the fscommand() action to start Java from a stand-alone projection file.

play attribute/parameter

Value: true | false
Template variable: $PL
Description: (Optional) Specify whether the application starts when it is loaded in the browser Play. If your Flash application is interactive, you can let the user start playback by clicking a button or performing some other task. In this case, setting the play property to false disables the application from automatically starting playback. If this property is omitted, the default value is true.

loop attribute/parameter

Value: true | false
Template variable: $LO
Description: (Optional) Specifies that the Flash content is empty after it reaches the last frame Limit repeat play or stop. If this property is omitted, the default value is true.

quality attribute/parameter

Value: low | medium | high | autolow | autohigh | best
Template variable: $QU
Description: (Optional) Specifies the anti-aliasing level to use during application playback. Because anti-aliasing requires a faster processor to smooth each frame of the SWF file before rendering them to the viewer screen, you need to choose a value depending on whether you want to optimize for speed or appearance:

"Low" prioritizes playback speed over appearance and never uses anti-aliasing.

"Autolow" prioritizes speed, but will also improve appearance wherever possible. When playback begins, anti-aliasing is turned off. Flash Player turns on anti-aliasing if it detects that the processor can handle it.

"Autohigh" starts with equal emphasis on playback speed and appearance, but will sacrifice appearance to ensure playback speed when necessary. When playback starts, anti-aliasing is on. If the actual frame rate drops below the specified frame rate, anti-aliasing is turned off to increase playback speed. Use this setting to emulate the Anti-Aliasing command in Flash (View > Preview Mode > Anti-Aliasing).

"Medium" applies some anti-aliasing but does not smooth the bitmap. This setting produces a higher quality image than the Low setting, but lower quality than the High setting.

"High" prioritizes appearance over playback speed, and it always applies anti-aliasing. If the SWF file does not contain animation, the bitmap is smoothed; if the SWF file contains animation, the bitmap is not smoothed.

"Best" provides the best display quality regardless of playback speed. All output is anti-aliased and all bitmaps are smoothed.

If the quality attribute is ignored, its default value is high.

bgcolor Attributes/Parameters

Value: #RRGGBB (hexadecimal RGB value)
Template variable: $BG
Description: (Optional) Specify the background of the application color. Use this property to override the background color setting specified in the Flash SWF file. This property does not affect the background color of the HTML page.

scale attribute/parameter

Value: showall | noborder | exactfit
Template variable: $SC
Description: (Optional) When the width and height values ​​​​are percentages, define How the application is placed in the browser window.

"Showall" (default) causes the entire Flash content to be displayed in the specified area without distortion, while maintaining its original aspect ratio. Borders may appear on the sides of the application.

"Noborder" scales the Flash content to fill the specified area without distortion. It keeps the application's original aspect ratio, but may cause some cropping.

"Exactfit" causes the entire Flash content to be displayed in the specified area, but does not attempt to maintain the original aspect ratio. Distortions may occur.

If this attribute is omitted (and the width and height values ​​are percentages), its default value is showall.

align attribute

Value: Default | L | R | T | B
Template variable: $HA
Description: Specify the align value of object, embed and img tags, and Determines how the Flash SWF file is placed within the browser window.

"Default" causes the application to be centered within the browser window, and will crop the edges if the browser window is smaller than the application.

L, R, T, and B align the application along the left, right, top, and bottom edges of the browser window, respectively, and crop the remaining three sides as needed.

salign Parameter

Value: L | R | T | B | TL | TR | BL | BR
Template variable: $SA
Description: (Optional) Specify scaling The position of the Flash SWF file within the area defined by the width and height settings. For more information about these conditions, see the scale attribute/parameter.

L, R, T, and B align the application along the left, right, top, and bottom edges of the browser window, respectively, and crop the remaining three sides as needed.

TL and TR align the application to the upper-left and upper-right corners of the browser window, respectively, cropping the bottom and remaining right or left edges as appropriate.

BL and BR align the application to the lower left and lower right corners of the browser window, respectively, cropping the top edge and remaining right or left edges as appropriate.

If this attribute is omitted, the Flash content will be displayed centered in the browser window.

base attribute

Value: Base directory or URL
Description: (Optional) Specifies the base directory or URL used to resolve all relative path statements in Flash SWF files. This property is useful if the SWF file is saved in a different directory than your other files.

menu properties/parameters

Value: true | false
Template variable: $ME
Description: (Optional) Specify when the viewer right-clicks in the browser (Windows) Or the type of menu that appears when you Command-click (Macintosh) an application area.

"true" displays a full menu, allowing the user to enhance or control playback with various options.

"false" displays a menu that only contains the "About Macromedia Flash Player 6" option and the "Settings" option.

If this attribute is omitted, the default value is true.

wmode Property/Parameter

Value: Window | Opaque | Transparent
Template variable: $WM
Description: (Optional) Allows you to use transparency in Internet Explorer 4.0 Flash content, absolute positioning and hierarchical display functions. This tag/property is only valid on Windows with the Flash Player ActiveX control.

"Window" uses the video's own rectangular window to play the application on the Web page. "Window" indicates that the Flash application has no interaction with the HTML layer and is always on top.

"Opaque" causes the application to hide all content behind it on the page.

"Transparent" allows the background of the HTML page to show through any transparent parts of the application, which may reduce animation performance.

Both "Opaque windowless" and "Transparent windowless" can interact with HTML layers and allow the layer above the SWF file to shadow the application. The difference between the two options is that Transparent allows transparency, so if a portion of the SWF file is transparent, the HTML layer underneath the SWF file can show through that portion.

If this property is omitted, the default value is Window. Applies to object only.

allowscriptaccess Attribute/Parameter

Value: always | never | samedomain
Description: Use allowscriptaccess to enable the Flash application to communicate with the HTML page that hosts it. This parameter is required because the fscommand() and getURL() operations can cause JavaScript to use the permissions of the HTML page, which may be different than the permissions of the Flash application. This has important implications for cross-domain security.

always allows script operations to be executed at any time.

never disables all script operations.

samedomain Allows scripting only if the Flash application comes from the same domain as the HTML page.

The default value used by all HTML publishing templates is samedomain.

The above is the detailed content of Detailed explanation of object tag parameters in HTML. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Previous article:html: Sample code sharing of tag Next article:How to insert video using object and embed tags in html?
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template