JavaScript Flash Player Detection and Embedding with SWFObject
JavaScript Flash Player Detection and Embedding with SWFObject
SWFObject is a small JavaScript file that you can use for embedding Macromedia Flash content into your website. The script detects Flash Player in all major web browsers (Mac OS and Windows) and is designed to make embedding SWF files as easy as possible.
Besides being very search engine–friendly, SWFObject degrades gracefully, can be used in valid HTML and XHTML 1.0 documents (that is, when pages are sent as text/html
instead of application/xhtml+xml
), and is forward-compatible. It should work for years to come.
Requirements
In order to make the most of this article, you need the following software and files:
Flash 8
Any text editor
Sample files:
Prerequisite Knowledge
You should have a basic understanding of JavaScript and HTML.
Comments