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: