Testing for Flash capability on the server-side

后端 未结 6 1001
独厮守ぢ
独厮守ぢ 2021-01-14 23:23

I\'m developing an ASP.NET website that will need to support non-flash users.

In case the user\'s browser doesn\'t support Flash, or they have Flash disabled, I\'d l

6条回答
  •  一个人的身影
    2021-01-15 00:14

    The client-side flash detection is probably the better way to go. However, do keep in mind that you may have users with JavaScript disabled, such as people using the NoScript plugin. You have three basic choices for dealing with this that I can see.

    1. Ignore it. Perhaps you feel not enough people will be in this situation to be worth worrying about.

    2. Check for it, and have an indicator come up asking the user to enable JS for a better experience on this site. This is usually done by having the notice render in the page, and having JS code to disable or hide the rendering of that element.

    3. Attempt to support reasonably good site operation without JavaScript. This would probably involve having the large image load by default, and stopping that load from happening before it starts. That could be tricky.

提交回复
热议问题