Categories

Partners
Search


Advanced Search




PSD Tuts

flash websites

JavaScript Flash Player Detection and Embedding with SWFObject
Published  08/20/2006 | Macromedia Flash Player
   




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.

Article Series
This article is part 1 of a 5 part series. Other articles in this series are shown below:
  1. JavaScript Flash Player Detection and Embedding with SWFObject
  2. How SWFObject Works
  3. SWFObject Examples
  4. Using Express Install with SWFObject
  5. Comparing SWFObject with Other Methods