Display Message if Flash Doesn't Show in IE8
Okay...so apparently with the new update in IE8, it starts up with NO add-ons. Since I cannot program a code to turn on add-ons in a browser, I need to show a message when this occurs. Much like an image has alternative text in the event the image doesn't load...how开发者_如何学C can I add a message that states:
You are using Internet Explorer 8+ and need to turn on your add-ins like FLASH Player. This site is optimized for Mozilla Firefox or Google Chrome.
ANy suggestions?
Like this:
<object ...>
<param ... />
You are using a browser that does not have Flash player enabled.
Please turn on your Flash player plugin.
</object>
This will display the appropriate message to any visitor (whether they're using IE8 or another browser) if they have Flash disabled.
Alternatively, you could use swfobject.js or similar, which will insert the Flash movie into a <div>
. And if Flash is unavailable, the content that is already inside the <div>
will be displayed instead.
精彩评论