开发者

How to handle the absence of Flash in a browser [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago.

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:

  1. Progressive Enhancement
  2. Graceful Degradation
  3. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜