Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HTML fallback for flash on iPhone?

Featured Replies

Hi all,

 

Could someone please advice or provide some code which will allow me to show some HTML instead of Flash when viewed on an iPhone or iPad? I have a large flash banner for one of my websites, however for iPhone or iPad I'd like to show some HTML with a still image instead.

I have avoided using Flash on anything I've made, but I believe you can use:

 

<object data="example.swf">
<!-- No-Flash HTML here -->
<h1>You don't have Flash installed</h1>
<p>Good boy.</p>
<!-- End no-Flash HTML -->
</object>

  • Author

I have avoided using Flash on anything I've made, but I believe you can use:

 

<object data="example.swf">
<!-- No-Flash HTML here -->
<h1>You don't have Flash installed</h1>
<p>Good boy.</p>
<!-- End no-Flash HTML -->
</object>

 

Hi Andy, thanks for this code.

 

Ha, yes I avoid Flash as well - it's for a site I built years ago.

  • Author

I have avoided using Flash on anything I've made, but I believe you can use:

 

<object data="example.swf">
<!-- No-Flash HTML here -->
<h1>You don't have Flash installed</h1>
<p>Good boy.</p>
<!-- End no-Flash HTML -->
</object>

 

Hi Andy.

 

Sorry, I've tried to implement the code but it doesn't quite work. Here is what I have currently....

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="955" height="462" id="FlashID" title="TITLE">
     <param name="movie" value="includes/top.swf" />
       <param name="quality" value="high" />
       <param name="wmode" value="opaque" />
       <param name="swfversion" value="9.0.45.0" />
       <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
       <param name="expressinstall" value="Scripts/expressInstall.swf" />
       <param name="LOOP" value="false" />
       <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
       <!--[if !IE]>-->
       <object type="application/x-shockwave-flash" data="includes/top.swf" width="955" height="462">
         <!--<![endif]-->
         <param name="quality" value="high" />
         <param name="wmode" value="opaque" />
         <param name="swfversion" value="9.0.45.0" />
         <param name="expressinstall" value="Scripts/expressInstall.swf" />
         <param name="LOOP" value="false" />
         <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
         <img src="images/no-flash.jpg" alt="TITLE" width="955" height="462" />
         <!--[if !IE]>-->
       </object>
       <!--<![endif]-->
     </object>

 

Attempting to replace this code (and updating the links) with yours creates an error. Where Flash is enabled, nothing shows. Am I doing something wrong?

Edited by C A R

  • Author

Hi Andy.

 

Sorry, I've tried to implement the code but it doesn't quite work. Here is what I have currently....

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="955" height="462" id="FlashID" title="TITLE">
     <param name="movie" value="includes/top.swf" />
       <param name="quality" value="high" />
       <param name="wmode" value="opaque" />
       <param name="swfversion" value="9.0.45.0" />
       <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
       <param name="expressinstall" value="Scripts/expressInstall.swf" />
       <param name="LOOP" value="false" />
       <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
       <!--[if !IE]>-->
       <object type="application/x-shockwave-flash" data="includes/top.swf" width="955" height="462">
         <!--<![endif]-->
         <param name="quality" value="high" />
         <param name="wmode" value="opaque" />
         <param name="swfversion" value="9.0.45.0" />
         <param name="expressinstall" value="Scripts/expressInstall.swf" />
         <param name="LOOP" value="false" />
         <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
         <img src="images/no-flash.jpg" alt="TITLE" width="955" height="462" />
         <!--[if !IE]>-->
       </object>
       <!--<![endif]-->
     </object>

 

Attempting to replace this code (and updating the links) with yours creates an error. Where Flash is enabled, nothing shows. Am I doing something wrong?

 

Hi Andy, don't worry I've managed to get it working - thanks again! :)

Edited by C A R

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.