SWFObject: Javascript-based Flash Media Version Detection and embedding Module

Source: Internet
Author: User
Original article: SWFObject: JavascriptFlashPlayerdetectionandembedscript Translation: Awflasher.com: Updatedto1.

Original article:SWFObject: Javascript Flash Player detection and embed script
Translation:Awflasher.com
Chinese address:Http://www.awflasher.com/flash/articles/swfobj.htm-Update to SWFObject 1.5 official document (Updated to 1.5 @ 070318)

SWFObject is an independent and agile JavaScript module used to insert Adobe Flash Media resources (*. swf files) in HTML. The JavaScript script in this module can automatically detect the support of Flash plug-ins by mainstream browsers on PCs and Mac machines. It makes inserting Flash Media resources as simple and secure as possible. In addition, it is very consistent with the search engine optimization principles. In addition, it can avoid non-standard tags such as object and embed in your HTML and XHTML, so as to conform to more standards.
(That is, the page is responded through text/html, rather than application/xhtml + xml)

Note:For legal reasons, FlashObject has been renamed to SWFObject. For details, seeHere.

Content Guide

  • New Features
  • Implementation Principle
  • SWFObject example
  • Apply ExpressInstall in SWFObject
  • Download
  • Unique Advantages
  • FAQs
New Features

Detailed update records can be found inSWFObject 1.5 blog postHere.

Implementation Principle

[For users eager to downloadClick here to directly view the JS Code]

SWFObject is very simple to use and only needs to containswfobject.jsThis js file can be embedded with Flash Media resources by inserting some simple JS code in the DOM. The following is a simple example:

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.