Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8551311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:10:08+00:00 2026-06-11T14:10:08+00:00

Can someone help me figure out how to build a fallback setup? I need

  • 0

Can someone help me figure out how to build a fallback setup? I need to insert an HTML5 animation into a webpage via iframe, and if the browser doesn’t support HTML5, I need it to play a Flash animation. If the browser doesnt support HTML5, and the proper version of Flash is not installed, I need it to just show a jpeg.

Can this be achieved via User Agent? I can’t get this done by using conditional statements, because conditional statements only check if the user is using IE, and IE10 “supports” HTML5 (i use quotes sarcastically, IE10 does quite well in fact. I’m simply not used to having good things to say about IE, but I digress)

Any thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:10:09+00:00Added an answer on June 11, 2026 at 2:10 pm

    You have two pretty good choices:

    1. HTML. HTML automatically ignores tags it doesn’t understand, so nest tags to accomplish what you’d like:
    
        <canvas>
            <!-- stuff that works for canvas -->
            <object class="flash-etc">
                <!-- flash parameters -->
                <img src="/the/jpg" />
            </object>
        </canvas>
    
    1. JavaScript. Use Modernizr (http://modernizr.com/) to detect presence of features. Detecting browser maker and version is very, very fragile. Don’t do it. Instead detect presence of the target feature and act accordingly. The search term is called “polyfill”

      if ( Modernizr.canvas ) {
          // html5 here
      } else if ( /*test for flash */ ) {
          // flash init here
      } else {
          // img here
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone help me figure out how to translate the following curl commands into
Can someone please help me figure out a way to achieve the following (see
my SQL skills aren't strong enough to figure this out, hope someone can help.
hoping someone can help me out with this. I'm trying to figure out whether
Can someone help me figure out how to get the content of a Google
I'm curious if someone can help me figure out what is going on... I
Can someone please help me to figure out how to create domain classes for
Can someone help me figure out how to redirect a url like this. http://www.example.com/file.html/
Can someone help me figure out why the line marked #works works, but the
Can someone help me figure out the following make file? BINS=file1 file2 file3 all:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.