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>
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!

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Atom editor mac version download
The most popular open source editor

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.