开发者

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

开发者 https://www.devze.com 2022-12-17 08:32 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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