My client has a Flash animation which he wants to embed in his web page.
In the interests of accessiblity, I have persuaded him to offer the same content as HTML (for those who don’t have Flash).
My question: How does one go about detecting if Flash is present, so as to offer the appropriate content?
Is there such a thing as a <noscript> tag, but for Flash?
Thanks in advance
You can have fallbacks in your code for when Flash is not available. For example, in this code …
<object data="/flash/file.swf" type="application/x-shockwave-flash">
<param name="movie" value="/flash/file.swf">
<param name="wmode" value="opaque">
<object type="image/jpg" data="/images/fallback.jpg">
<p>Jeesh, images off too?</p>
… a Flash file will play unless Flash is not supported, in which case an image will display instead … unless images are off, in which case a paragraph will display instead.
Thanks for that. That sounds exactly like what I was after.
I’ll try it out tomorrow.