Solved

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

Posted on 2013-06-15
3
438 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will learn how to count occurrences of each item in an array.
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…

636 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