Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

alternative flash content for iphone

Posted on 2008-10-22
6
Medium Priority
?
1,359 Views
Last Modified: 2012-05-05
Hello,
I have a site with a flash banner. I have provided alternative content (on a test page only for now) that is just a static graphic. this works fine on desktop browsers.

i know that iphone does not support flash but it isnt showing the alternative content either. i have used swfobject as shown below:

thanks for any help

jon

script type="text/javascript" src="swfobject.js"></script>
 
 
 
 
<div id="flashcontent">
     <img src="images/alt/static-profile.jpg" alt="profile">
</div>
<script type="text/javascript">
      // <![CDATA[
      var so = new SWFObject("GrassBanners/profile.swf", "Movie", "800", "120", "8", "#031A30");
      so.write("flashcontent");
      // ]]>
</script>

Open in new window

0
Comment
Question by:jonsmithgraphics
[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
  • 4
  • 2
6 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 22776133
have a lookie here at the blog
the guys did something with the iphone with code examples. how cool are they.



http://www.swffix.org/devblog/?p=37
0
 

Author Comment

by:jonsmithgraphics
ID: 22779235
thanks blue-genie
will have a look at this link and see if i can get things working!

fingers crossed....

0
 

Author Comment

by:jonsmithgraphics
ID: 22779652
hi blue-genie
i had a read through that blog and ended up trying a different method which seems to work in browsers. but it still isnt displaying the alternative content graphic on the iphone...

any ideas what i am doing wrong?

cheers :)
<script type="text/javascript" src="swfobject.js"></script>
 
 
<script type="text/javascript">
    swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
    </script>
 
 
 
 
 
<div id="flashcontent">
 
  <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="120">
        <param name="movie" value="GrassBanners/profile.swf" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="GrassBanners/profile.swf" width="800" height="120">
        <!--<![endif]-->
         <img src="images/alt/static-profile.jpg" alt="profile">
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
	  
</div>

Open in new window

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 39

Expert Comment

by:blue-genie
ID: 22784056
i have an idea. you buy me an i-phone, and then .... haha
i dont' have any experience working with an i-phone so i'm not sure.
i'd recommend posting on that guys blog, since he obviously has done it before. and check out the forums on the apple site.

thats all i got, sorry.
0
 

Author Comment

by:jonsmithgraphics
ID: 22788410
ok cheers for the help anyway!
0
 

Accepted Solution

by:
jonsmithgraphics earned 0 total points
ID: 23547593
got it working in the end, cant remember what i did differently to my initial post but here is the working code.
<script type="text/javascript" src="swfobject.js"></script>
 
 
<script type="text/javascript">
    swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
    </script>
 
 
 
 
 <div id="flashcontent2">
 
  <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="105">
        <param name="movie" value="GrassBanners/home2.swf" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="GrassBanners/home2.swf" width="800" height="105">
        <!--<![endif]-->
         <img class="altpic" width="800" height="105" src="images/alt/static-home.jpg" alt="profile">
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
	  
</div>

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

721 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