Please can somebody explain to me how to render a static banner instead of a flash banner in开发者_StackOverflow社区 the event that the browser doesn't have Flash installed already, so as not to interrupt the user's browsing experience. I'm coding in PHP and it probably makes sense to test for this in IE as well as Firefox.
Thank you
for the best possible way, try SWFObject, its a javascript code that checks if flashplayer of the right version is available, if it is then it overwrites a tag. Very simple to use, see documentation for examples.
It makes sense to test this for all the usual browsers and Adobe helps you with it. Download the Flash detection kit from the Adobe website.
After the script has told you about the availability of flash, take your further measures.
In case there is no flash player installed on users computer, then should follow these principles:
- Progressive Enhancement
- Graceful Degradation
- And finally decide whether to alert the user to download or install the flash player or redirect him to your flash-less site alternative if you have.
Finally see this:
How to detect whether or not flash player is installed
精彩评论