Unobtrusive Flash Objects
By Peter-Paul Koch | July 20th, 2005 | Filed in DOM, DOM Scripting TF
Skip to comment formBobby van der Sluis just published a new article: Unobtrusive Flash Objects (or UFO).
His script allows you to specify a placeholder DIV for a Flash object with a message meant for noflash browsers. The script then silently checks if the user has the proper Flash version, and if so replaces the placeholder by the Flash movie.
Not only does this make sure users without the correct Flash version see a nice message, it also allows you to keep your pages valid because you don’t have to use EMBED tags.
All in all an excellent example of unobtrusive JavaScript.