Solved

Replace Flash with Image if ipad, iphone, etc. browser

Posted on 2013-06-15
3
430 Views
Last Modified: 2013-06-16
How can I replace a swf file with an image file if the user is using an iphone or "non-flash" browser? I have the swf displaying in an iframe.

<iframe seamless="seamless" src="Images\TIHeader.swf" name= "iframe1" width ="100%" height="200" align="left" scrolling="no" frameborder="0" class="roundmid" id="frame1" onload="resize_iframe()" overflow="yes"></iframe>
0
Comment
Question by:Turfimage
  • 2
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39250810
What is the code for the iFrame i.e. the flash.
If you are using the object tag you can include a fallback

<object type="application/x-shockwave-flash">
  ...
  ..
  <img src="images/fallback.jpg" />
</object>
0
 

Author Comment

by:Turfimage
ID: 39250896
I dont have any object tags... Im calling the flash using the iframe so it will resize with the browser... does the iframe have a fallback object?
0
 
LVL 58

Accepted Solution

by:
Gary earned 310 total points
ID: 39251343
Instead of calling the swf directly, place that flash in an object code block (like the example above) and in it's own page and change the iframe src to this new page.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now