Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Providing alternative images if Adobe Flash isn't available

Tags:

html

flash

Are there any ways providing an alternate GIF/PNG image, in case the user has no Adobe Flash installed and/or deactivated. I’ve found recommendations, like the following from W3C, which determine via JavaScript the existence of Adobe Flash on the client: W3C Providing alternative images

Honestly, I would prefer a non JS technique. I’m thinking of some XHTML tag, equivalent to <noscript>. (like <noobject> if the object (in our case Flash) can’t be displayed/loaded).

The reason for needing this separation is the following: The bank I’m working for will preferably display their banners in Flash format. In case it isn’t possible a simple image should be shown. In the past it was solved very likely in the way mentioned before. We’re currently working on a design refresh and that’s where I stumbled upon this piece of code which makes me wonder if it’s really the most elegant and compatible way of doing so.

Another idea that strikes me: Is it actually possible to load Flash-objects in a JavaScript disabled environment?

like image 613
Gerhard Dinhof Avatar asked Jan 16 '09 08:01

Gerhard Dinhof


People also ask

What can I use instead of Adobe Flash?

The Best Flash Format Alternative – HTML5 A standard that replaced Flash is HTML5. It provides web developers with an opportunity to create interactive content for the Web, as they had with Adobe Flash. HTML5 rendering is now implemented into web browsers, making it really easy to maintain and update.

How do I bypass Adobe Flash Player is no longer supported?

While Adobe has dropped support for Flash, you can still download Adobe Flash Player as a standalone player for your PC and Mac. To play SWF Flash files on your PC without a browser, you'll need to download the Flash Player projector content debugger from Adobe.

How can I use HTML5 instead of Flash?

There are multiple tools that you can use for Flash to HTML5 conversion, including Adobe Captivate, Lectora Inspire, Adobe Wallaby, Google Swiffy, Sothink – Flash to HTML5 conversion tool, Apache FlexJS and Articulate Storyline. It is a free web editor for Flash to HTML5 conversion.

Do I need Adobe Flash Player?

As of January 2021, Flash Player is no longer supported by Adobe due to multiple security issues. Adobe recommended all users uninstall Flash Player in its end-of-life notice.


1 Answers

Actually having flash installed but javascript turned off is a valid scenario. This should work across most browsers:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="600" id="flashContent">
  <param name="movie" value="flash.swf" />
  <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="flash.swf" width="800" height="600">
  <!--<![endif]-->
      <img src="(...)" alt="Put your alternate content here" />
  <!--[if !IE]>-->
    </object>
  <!--<![endif]-->
</object>
like image 61
Kristian J. Avatar answered Sep 18 '22 13:09

Kristian J.