I'm using Flash on a webpage. But iPad and iPhone devices can not display Flash and shows blank area. How can I detect if a device visiting my page has Flash or not? If it supports Flash, I want to display Flash. If not, I want to display a static image.
Wrap the flash object tag around the img tag. That way if the object cannot be processed the image it wraps will display instead.
It will detect whether you have Flash available or not and inject the correct <object> tag for you.
The SWObject Documentation page has examples for both techniques.
SWFObject also comes with an "ExpressInstall" SWF, if you for example specify that your flash requires version 9 and the user has version 8, the ExpressInstall will kick in and ask them to upgrade.
(Though this path obviously will not work if the user chooses not to upgrade, in which case felgall's solution would be the way to go)
This topic is now closed. New replies are no longer allowed.