Complies with W3C standard flash (SWF) insert code, commonly used flash parameter settings

Source: Internet
Author: User
Based on our example, we will introduce the W3C standard flash Code And describes the settings of each parameter.
<Object type = "application/X-Shockwave-flash" Data = "swffile.swf" width = "650" Height = "500" id = "swffile">
<Param name = "movie" value = "swffile.swf"/>
<Param name = "allowfullscreen" value = "true"/>
<Param name = "flashvars" value = "xml = vcastr. xml"/>
</Object>

The above is the insert Code of XXX flash. It has been verified by W3C and tested by IE6, 7, firefox2, 3, and safari. The Code avoids repeated parameters.
<Object type = "application/X-Shockwave-flash" Data = "swffile.swf" width = "650" Height = "500" id = "XXX">
<Param name = "movie" value = "swffile.swf"/>
</Object>

Required. The size and address of the Flash. If you need a script, you can also set the ID name.
<Param name = "allowfullscreen" value = "true"/>

Whether to allow full screen. If this section is not specified, full screen is not allowed by default.
<Param name = "flashvars" value = "xml = vcastr. xml"/>

Set parameters to be passed to flash. If multiple parameters are connected with &, for example, key1 = value1 & key2 = value2 & key3 = value3, in swffile, the XML parameter can be set to the address of the XML file, or the XML text content can be directly set.
<Param name = "bgcolor" value = "# ff6600"/>

Set the background color of flash. This is very useful when bcastr4 sets the rounded corner.
<Param name = "menu" value = "false"/>

Set the Flash right-click menu and remove some default menus, leaving only the settings and information about Flash Player
<Param name = "quality" value = "high"/>

The available parameter for setting the playback quality of Flash is low autolow autohigh medium hight best. The default value is high.
<Param name = "scale" value = "default"/>

Set the available parameters of the flash scale-in mode to showall (show all content, keep ratio, but up or down, or left or right may be blank) and noborder (reduce content and keep ratio, but do not leave blank), exactfit (scale according to the height and width of the flash settings, do not maintain the proportion), noscale (do not scale, the original proportion)
<Param name = "wmode" value = "default"/>

Set the flash window mode. The available parameters window (default value, always on the top layer of HTML), opaque (allow the upper layer of flash to block webpages), and transparent (transparent flash background, may reduce flash performance)
<Param name = "salign" value = "TL"/>

Set the reference point for flash scaling. Available parameters include L (left side), R (right side), T (upper side), B (lower side), Tl (upper left side), TR (upper right side ), BL (lower left), Br (lower right). If this parameter is not set, center is used as the reference point by default.
<Param name = "base" value = "url"/>

Set Reference locations for relative flash paths

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.